Hi,
I have a problem with monotouch and with mail: I use this code to send mail
: 
        
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("[email protected]", "password");
                
                SmtpClient ss = new SmtpClient("smtp.gmail.com");
                ss.UseDefaultCredentials = false;
                ss.EnableSsl = true;
                ss.Credentials = _Credential;
                ss.Port = 587;
                ss.SendCompleted+= HandleSsSendCompleted;
                object userToken = mm;
                ss.Send(mm);

void HandleSsSendCompleted (object sender,
System.ComponentModel.AsyncCompletedEventArgs e)
        {
            if(e.Error != null)
            {
                throw e.Error;
            }
        }

But on IPhone,  I have the error : "Messange could not be sent" . I don't
know why. Can i enable anything on iphone? 

Thanks
Alessandor Graps


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Send-mail-System-Net-Mail-on-monotouch-tp3694424p3694424.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to