我正在尝试使用php mail()
函数发送邮件。代码位于imi-k.edu.in
域中。
如果使用以下代码:
mail("srimanta12@gmail.com","Test Mail","Cool message","From:srimanta@imi-k.edu.in");
邮件正在向srimanta12@gmail.com
帐户开帐单。
但如果我使用:
mail("srimanta@imi-k.edu.in","Test Mail","Cool message","From:srimanta@imi-k.edu.in");
然后邮件没有被解雇。
我正在使用godaddy
服务器。
这是由于相同的发件人,收件人和域帐户?
请让我知道问题的原因。这是一个非常关键的问题,因为此代码在实时服务器上。
使用phpmailer库后出错
2015-11-02 09:46:39 CLIENT -> SERVER: EHLO imi-k.edu.in 2015-11-02 09:46:39 CLIENT -> SERVER: STARTTLS 2015-11-02 09:46:39 CLIENT -> SERVER: EHLO imi-k.edu.in 2015-11-02 09:46:39 CLIENT -> SERVER: MAIL FROM: 2015-11-02 09:46:39 CLIENT -> SERVER: RCPT TO: 2015-11-02 09:49:24 SMTP ERROR: RCPT TO command failed: 550-Verification failed for 550-No Such User Here" 550 Sender verify failed 2015-11-02 09:49:24 CLIENT -> SERVER: QUIT 2015-11-02 09:49:24 SMTP ERROR: QUIT command failed: 421 ip-104-238-95-235.secureserver.net: SMTP command timeout - closing connection 2015-11-02 09:49:24 SMTP Error: The following recipients failed: srimanta.chakraborty@viavitae.co.in Message could not be sent.Mailer Error: SMTP Error: The following recipients failed: srimanta.chakraborty@viavitae.co.in