开发者

Email is not send in my server

开发者 https://www.devze.com 2023-02-15 06:24 出处:网络
I have go daddy hosting and user sing up email is not send. I have used mail() function. Which method I use and also how email send if user sing up?

I have go daddy hosting and user sing up email is not send. I have used mail() function. Which method I use and also how email send if user sing up? 开发者_StackOverflow社区Like mail("abc@yahoo.com", $subject, $message, $headers); I am using PHP language.

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. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号