How to send email via smtp using VB.NET 2010
I need to send an email via SMTP, I have my SMTP in a Linux Centos Server, and I created the software to send emails with VB.NET 2010.
After using the namespace : System.Net.Mail.SmtpClient, I receive an exception :
Mailbox name not allowed. The server response was: sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
Thanks in advance.
That's an error from the server you're attempting to send the email to; it has nothing to do with your code. The server you're trying to send the email too probably isn't authoritative for the mail domain you're sending to.