cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution
New

I want to send emails from my Xamarin pcl app using my Godaddy email. but it is not working


I want to send emails from my Xamarin pcl app using my Godaddy email. but it is not working.

My SMTP information on Godaddy is as follow

Outgoing server (SMTP) = smtpout.secureserver.net

Standard ports = 80, 3535, 25, 465 (SSL)

I've tested all ports with relay-hosting.secureserver.net & smtpout.secureserver.net. None of them worked.
I like GoDaddy.

 My code is as follow.

MailMessage mail = new MailMessage();
mail.From = new MailAddress("godaddyemail");
mail.To.Add(anyemail);
mail.Subject = "example";
mail.Body = "example";

SmtpClient smtp = new SmtpClient("relay-hosting.secureserver.net", 25);
smtp.Credentials = new NetworkCredential("godaddyemail", "godaddypassword");
smtp.EnableSsl = false;
smtp.UseDefaultCredentials = true;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Send(mail);

 

1 REPLY 1
New
Solution

Re: I want to send emails from my Xamarin pcl app using my Godaddy email. but it is not working