我是php和ajax的初学者。你能帮我怎么用php发送电子邮件。非常感谢您的帮助。提前谢谢。
以下是我的要求。
将用户详细信息登录到AC经销商和经销商内容以登录用户。
答案 0 :(得分:0)
好吧,用PHP发送电子邮件非常简单。
从服务器发送给收件人:
$recipient = "dealer@market.com";
$subject = "This is a very important subject";
$message = "This is the Email body with your data";
mail($recipient, $subject, $message);
从特定电子邮件发送给收件人
$recipient = "dealer@market.com";
$subject = "This is a very important subject";
$message = "This is the Email body with your data";
$header = "From: John Doe <john.doe@email.com>";
mail($recipient, $subject, $message, $header);
您可以找到文档here。