[Mono-aspnet-list] SMTP problem with gmail

2011-12-05 Thread dotnetasp
I have an application written in ASP.net and I am trying to make it work on OpenSUSE with Apache2 and mod-mono installed. So far everything works fine but I am facing problems when my application tries to send auto-generated mail through an SMTP host (e.g. Google's gmail server). The method I use

Re: [Mono-aspnet-list] SMTP problem with gmail

2011-12-07 Thread angel colmenares
this code works fine for me (using mono-mod_mono...); try{ MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com"); mail.From = new MailAddress("usern...@gmail.com"); mail.To.Add("dest-userm...@gmail.com"); mail.Subject = "testing gmail - mono"; mail.Body =