如何使用 VB.NET 2010 通过 smtp 发送电子邮件
我需要通过 SMTP 发送电子邮件,我的 SMTP 位于 Linux Centos 服务器中,并且我创建了
使用 VB.NET 2010 发送电子邮件的软件。 Net.Mail.SmtpClient,我收到一个异常:
Mailbox name not allowed.
The server response was: sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是您尝试向其发送电子邮件的服务器发生错误;它与你的代码无关。您尝试发送电子邮件的服务器也可能对您要发送到的邮件域不具有权威性。
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.
要获取通过 smtp 发送邮件的免费代码,请访问下面提到的网站:
http://bitsbyta.blogspot.com/2011/02/how-to-send-emails-through-smtp-vbnet.html
有关 vb.net、c# 的更多教程。 Net、C++ 和 Java 访问:
http://www.bitsbyta.blogspot.com/
To get free code for sending mails through smtp, visit the below mentioned site:
http://bitsbyta.blogspot.com/2011/02/how-to-send-emails-through-smtp-vbnet.html
for more tutorials on vb.net,c#.net, C++ and java visit:
http://www.bitsbyta.blogspot.com/