Hello whenever I'm trying to send an email from my application on account I get the following error.
User is not local; Please try a different path: Server reply was: Bad recipient (mail address sender, mailadder collection recipient, string delivery notification, SMTPPF field reciprocation and exception) on system.Net.Mail.SmtpTransport.SendMail
provided by client The SMTP settings are absolutely correct. When I change my SMTP setting with Gmail SMTP settings on the Web.config mail is running smoothly. But when my SMTP setting is set up in the STMT setting, then the error is provided by the client.
I have the web. Config
& lt; Mail settings and gt; & Lt; Smtp deliveryMethod = "network" = "from addressm" & gt; & Lt; Network default credentials = "true" host = "hostname" port = "25" user name = "username" password = "password" /> & Lt; / Smtp & gt; & Lt; / MailSettings & gt;
The email address you are using from to
The address is not present on the SMTP server and therefore has been refused.
Make sure you use the existing email address.
See the forum post for more detail.
Comments
Post a Comment