使用php发送电子邮件 [英] send email using php
本文介绍了使用php发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何知道我的主机是否允许我使用PHP邮件()函数发送电子邮件?
How do I know if my host is allowing me to send emails using PHP mail() function?
可以使用phpinfo()输出检查吗? / p>
Is that possible to check with phpinfo() output?
推荐答案
您可以检查 phpinfo()
,但我建议尝试
You could check the phpinfo()
but I would suggest trying
mail("me@me.com", 'Subject', 'Test Body', "From: from@me.com");
这篇关于使用php发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文