信箱不可用。服务器响应是:拒绝访问 - 无效的HELO名称(请参阅RFC2821 4.1.1.1) [英] Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
问题描述
背景:
我有一个托管服务器的网站(asp.net/c#),网站也在我的本地电脑上。
In我的网站我有一个用于发送电子邮件的表单。当我在我的本地电脑上并使用该表格发送电子邮件时,它100%工作,但当在服务器上并使用该表格时,我收到错误:
邮箱不可用。服务器响应是:访问被拒绝 - 无效的HELO名称(参见RFC2821 4.1.1.1)
我用来发送电子邮件的代码如下
Background:
I have a website(asp.net/c#) that is hosted on a server, the website is also still on my local pc.
In my website i have a form that is used to send emails. When on my local pc and using that form to send emails it works 100% but when on the server and using that form i get the error:
Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
The code i use to send the email is as follows
String PasswordOfEmailAddress = "xxx";
String Host = "host.com";
String sendFrom = "no-reply@test.co.za";
String sendTo = txtEmailAdress.Text;
String sendSubject = txtSubject.Text;
String body = txtBody.Text;
String sendMessage = body;
NetworkCredential emailUserPassw = new NetworkCredential(sendFrom, PasswordOfEmailAddress);
SmtpClient SendingEmail = new SmtpClient(Host);
SendingEmail.EnableSsl = true;
SendingEmail.Credentials = emailUserPassw;
SendingEmail.Send(message);
首先,我甚至不知道错误意味着什么,其次我不知道从哪里开始修复它
有人告诉我添加UserDefaultCedential = false
这给了我一个错误...服务器不支持sercure连接
如果有人可以提供帮助我会很感激
First of all, i dont even know what the error means and second i have no idea where to start by fixing it
Someone told me to add UserDefaultCedential = false
That gave me an error of ... Server does not support sercure connections
If Anyone can help i will appreciate it
推荐答案
这篇关于信箱不可用。服务器响应是:拒绝访问 - 无效的HELO名称(请参阅RFC2821 4.1.1.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!