如何更改php错误邮件的主题? [英] How do I change the subject of my php error email?
本文介绍了如何更改php错误邮件的主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下内容:
error_log("big error!!", 1, my email address);
当消息传递时,它在主题行中显示PHP error_log消息。
When the message is delivered it says "PHP error_log message" in the subject line.
有人可以告诉我如何自定义邮件主题?
Can someone show me how to customize the message subject?
推荐答案
error_log("Error message", 1, "me@example.com", "Subject: My custom subject");
error_log
的第四个参数允许您指定自定义标题,其中主题
是电子邮件的主题。
The fourth parameter of error_log
allows you to specify custom headers, of which Subject
is the subject of the email.
这篇关于如何更改php错误邮件的主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文