2015-10-14 71 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

相關問題