如何使用 VB.NET 2010 通过 smtp 发送电子邮件

发布于 2024-10-05 15:56:23 字数 280 浏览 1 评论 0原文

我需要通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜无邪 2024-10-12 15:56:23

这是您尝试向其发送电子邮件的服务器发生错误;它与你的代码无关。您尝试发送电子邮件的服务器也可能对您要发送到的邮件域不具有权威性。

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.

残花月 2024-10-12 15:56:23

要获取通过 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文