c# - Don't Send Email by hosting -
I use the code below to send an email, but every time I get this error
Send Failure Mail
My code:
MailMessage Message = New MailMessage ("donot-reply@mydomain.ir", "reception@yahoo.com", "Exam "," Msg "); Message.IsBodyHtml = True; SmtpClient emailClient = new SmtpClient ("mail.mydomain.ir", 110); EmailClient.Credentials = New System.Net.NetworkCredential ("donot-reply@mydomain.ir", "Donut-Answers! 1"); EmailClient.EnableSsl = true; EmailClient.Send (message); I can send an email to thunderbolt with this email address, but I do not know why I can not send an email to NAT
< DivX = "post-text" itemprop = "text">
At a quick glance, using the invalid Simple Mail Transfer Protocol port, try the following:
- Port: 25
- Port: 587
No stack traces or more information Your error is not much of us Will.
Comments
Post a Comment