Php 电子邮件未发送到我的服务器

Php 电子邮件未发送到我的服务器,php,email,sendmail,Php,Email,Sendmail,我已经去爸爸托管和用户唱了电子邮件是不发送。我使用了mail()函数。 我使用哪种方法,以及如果用户唱起来如何发送电子邮件? 像邮件(“abc@yahoo.com“,$subject,$message,$headers) 我正在使用PHP语言 作为对评论的回应,以下是代码: $to = 'aaas@yahoo.com'; $subject = 'welcome'; $message = 'xxxxxxxxxx ' . "\n" ; $headers = 'From: AAA' . "\r\n"

我已经去爸爸托管和用户唱了电子邮件是不发送。我使用了
mail()
函数。 我使用哪种方法,以及如果用户唱起来如何发送电子邮件? 像
邮件(“abc@yahoo.com“,$subject,$message,$headers)
我正在使用PHP语言

作为对评论的回应,以下是代码:

$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
不是有效的
from
地址。您需要一个完整、有效的电子邮件地址,该地址解析为发送邮件的域


回复到:没有回复也不太可能有效。

你能把代码贴到你发邮件的地方吗?$to='10〕aaas@yahoo.com'; $主题=‘欢迎’$消息='xxxxxxxxx'。“\n”$标题='From:AAA'。“\r\n”。“答复:无答复”。“\r\n”;$mailed=mail($to,$subject,$message,$headers);你在用sendmail吗?最好知道您使用的是什么邮件服务器。