2015-10-14 98 views

回答

3

替换:

// Mail it! 
$result = mail(TO_EMAIL, $title, $message, $headers); 

有了这个:

$differentMessage = 'This is a string that contains sth and after this we append the old message' . $message; 

// Mail it! 
$result = mail(TO_EMAIL, $title, $message, $headers); 
// Mail a copy 
mail($contact_email, $title, $differentMessage, $headers); 

注意,头部将保持不变(重播),但这应该给你一个关于如何修改变量并发送第二封电子邮件的想法。

+0

谢谢塞巴斯蒂安。对于我不好的知识抱歉。我在哪里准确设置变量?谢谢 – Hove

+0

编辑我的答案。 – Sebastian

+0

谢谢你塞巴斯蒂安。它工作得很好。像MAGIC。如果你没有问题,我可以联系你做一些调整。 – Hove