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.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;
Go to Solution.
SOLVED: This worked for me