【问题标题】:PHP : Add reply-to text to the mail when someone replies to mailPHP:当有人回复邮件时,将回复文本添加到邮件中
【发布时间】:2013-11-21 14:05:58
【问题描述】:

我正在向客户发送邮件并回复 email-id ,当客户单击回复时,应添加预定义文本以包含正文,然后客户将键入 contains。 如何做到这一点?

【问题讨论】:

  • 你不能。这取决于客户使用的电子邮件软件。你无法控制它。

标签: php email


【解决方案1】:

您需要设置标题才能传递sender email:

<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

【讨论】:

    猜你喜欢
    • 2023-01-05
    • 2011-04-09
    • 2013-06-29
    • 1970-01-01
    • 1970-01-01
    • 2013-08-07
    • 1970-01-01
    • 1970-01-01
    • 2017-07-16
    相关资源
    最近更新 更多