不允许使用邮箱名称。服务器响应是:抱歉,身份验证失败或超时。请先获取消息以进行身份​​验证。(#4.4.3) [英] Mailbox name not allowed. The server response was: sorry, authentication failed or timed out. Please do get messages first to authenticate yourself.(#4.4.3)

查看:168
本文介绍了不允许使用邮箱名称。服务器响应是:抱歉,身份验证失败或超时。请先获取消息以进行身份​​验证。(#4.4.3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用Rediffmail通过smtp发送邮件的应用程序它工作正常但现在显示错误

I have application which is sending mail through smtp using Rediffmail it was working fine but now it is showing error

Mailbox name not allowed. The server response was: sorry, Authentication failed or timed out. Please do get messages first to authenticate yourself.(#4.4.3)



i已检查此服务器的smtp

以下是我的代码

请提前解决一些解决方案,请提前致谢



我的尝试:




i have checked the smtp for this server
below is my code
please suggest some solution its urgent thanks in advance

What I have tried:

try
          {
              System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage();

              MailMessage mail = new MailMessage();

              mail.To.Add(To);
              mail.From = new MailAddress("emailid");
              mail.Subject = subject;
              mail.Body = body;
              mail.IsBodyHtml = true;
              SmtpClient smtp = new SmtpClient("smtp.rediffmailpro.com", 25);
              smtp.EnableSsl = true;

              smtp.UseDefaultCredentials = false;
              smtp.Credentials = new System.Net.NetworkCredential("username", "password");
              smtp.Send(mail);

              return (1);


          }
          catch (Exception ex)
          {
              TraceService(ex.Message);
              return (0);
          }

推荐答案

尽管你传递了你的用户名和密码,服务器仍然希望你收到消息首先要验证自己。这意味着,服务器是否希望您使用POP3检索邮件,然后它会让您发送邮件。为此,请使用端口110连接到 pop.rediffmailpro.com 并传递以下消息:

Despite you passing your your username and password, the server wants you to "get messages first to authenticate yourself". What this means, is that the server wants you to retrieve your messages using POP3 and then it will let you send the mail. To do this, connect to pop.rediffmailpro.com with port 110 and pass these messages:
USER <username>
PASS <password>
LIST
QUIT



我不知道为什么服务器想要这个,即使你传递了你的用户名和密码,但这就是它所说的。


I don't know why the server wants this even when you pass your username and password, but that's what it appears to tell.


这篇关于不允许使用邮箱名称。服务器响应是:抱歉,身份验证失败或超时。请先获取消息以进行身份​​验证。(#4.4.3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆