相关疑难解决方法(0)

5.7.57 SMTP - 客户端未通过身份验证,无法在MAIL FROM错误期间发送匿名邮件

我必须使用我的网络应用程序发送邮件.鉴于以下代码显示The SMTP server requires a secure connection or the client was not authenticated. The server response was:

5.7.57 SMTP; 客户端未经过身份验证,无法在MAIL FROM期间发送匿名邮件.

帮我找一个合适的解决方案.谢谢.

码:

protected void btnsubmit_Click(object sender, EventArgs e)
 {

   Ticket_MailTableAdapters.tbl_TicketTableAdapter tc;
   tc = new Ticket_MailTableAdapters.tbl_TicketTableAdapter();
   DataTable dt = new DataTable();
   dt = tc.GetEmail(dpl_cate.SelectedValue);
   foreach (DataRow row in dt.Rows)
    {
    string eml = (row["Emp_Email"].ToString());
    var fromAddress = "emailAddress";
    var toAddress = eml;
    const string fromPassword = "*****";
    string body = "Welcome..";
 // smtp settings
    var smtp = new System.Net.Mail.SmtpClient(); …
Run Code Online (Sandbox Code Playgroud)

c# timeout smtp

48
推荐指数
9
解决办法
21万
查看次数

PHPMailer .Exception:SendAsDeniedException.MapiExceptionSendAsDenied

我在我的网站上安装了PHPMailer.但是,我无法以应有的方式工作.当我通过网站发送电子邮件时,我收到以下错误:

08:12:53    CLIENT -> SERVER: RCPT TO: 2016-10-13 08:12:53
CLIENT -> SERVER: DATA 2016-10-13 08:12:53  
CLIENT -> SERVER: Date: Thu, 13 Oct 2016 08:12:51 +0000 2016-10-13 08:12:53
CLIENT -> SERVER: To: Kevin Kloet 2016-10-13 08:12:53   
CLIENT -> SERVER: From: Name <myEmail@email.com> 2016-10-13 08:12:53
CLIENT -> SERVER: Reply-To: Name <myEmail@email.com> 2016-10-13 08:12:53    
CLIENT -> SERVER: Subject: Subject 2016-10-13 08:12:53  
CLIENT -> SERVER: Message-ID: 2016-10-13 08:12:53   
CLIENT -> SERVER: X-Mailer: PHPMailer5.2.15 (https://github.com/PHPMailer/PHPMailer) 2016-10-13 08:12:53    
CLIENT -> SERVER: MIME-Version: 1.0 2016-10-13 08:12:53 
CLIENT …
Run Code Online (Sandbox Code Playgroud)

php smtp phpmailer

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

smtp ×2

c# ×1

php ×1

phpmailer ×1

timeout ×1