[英]Email is not send in my server
I have go daddy hosting and user sing up email is not send. 我有爸爸托管,并且用户发送电子邮件的电子邮件未发送。 I have used
mail()
function. 我使用过
mail()
函数。 Which method I use and also how email send if user sing up? 如果用户唱歌,我会使用哪种方法以及如何发送电子邮件? Like
mail("abc@yahoo.com", $subject, $message, $headers);
像
mail("abc@yahoo.com", $subject, $message, $headers);
I am using PHP language. 我正在使用PHP语言。
In response to a comment, here's the code: 为了回应评论,下面是代码:
$to = 'aaas@yahoo.com';
$subject = 'welcome';
$message = 'xxxxxxxxxx ' . "\n" ;
$headers = 'From: AAA' . "\r\n" .'Reply-To: No Reply' . "\r\n";
$mailed = mail($to, $subject, $message, $headers);
AAA
is not a valid from
address. AAA
是不是一个有效from
地址。 You need a full, valid E-Mail address that resolves to the domain you are sending the mail from. 您需要一个完整,有效的电子邮件地址,该地址必须解析为您要从中发送邮件的域。
reply-to: No Reply
is also unlikely to work. reply-to: No Reply
也不太可能起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.