Hi,
I found the problem :
Gmail has certified.
This is the right code:
sing System.Net;
using System.Net.Mail;
using System.Security.Cryptography.X509Certificates;
using System.Net.Security;
..
MailMessage mm = new MailMessage();
mm.To.Add(new MailAddress("[email protected]"));
mm.From = new MailAddress("[email protected]");
mm.Subject = "Customer Signup CSV Export";
mm.Body = "Here are the Customers Signed up";
mm.BodyEncoding = UTF8Encoding.UTF8;
mm.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
NetworkCredential _Credential = new NetworkCredential("nome", "password");
SmtpClient ss = new SmtpClient("smtp.gmail.com");
ss.UseDefaultCredentials = false;
ss.EnableSsl = true;
ss.Credentials = _Credential;
ss.Port = 587;
ss.SendCompleted+= HandleSsSendCompleted;
ServicePointManager.ServerCertificateValidationCallback =
delegate(object s, X509Certificate certificate, X509Chain chant,
SslPolicyErrors error)
{
return true;
};
ss.Send(mm);
Thank a lot
Alessandro
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Send-mail-System-Net-Mail-on-monotouch-tp3694424p3709977.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch