如何添加php脚本以检索from:电子邮件地址 [英] How do I add a php script in order to retrieve the from: email address
本文介绍了如何添加php脚本以检索from:电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有联系表单的index.php页面,当我测试表格时,如果从服务器用户名如username@servername.com我收到的电子邮件,如何将其设置为填写表单的用户?
I have a page index.php with contact form and when I test the form the email I receive if from the server username like username@servername.com, how can I set it to be from the user who filled the form?
推荐答案
这是PHP代码:
Here is the PHP code:
to ='myemail@name.com';
to = 'myemail@name.com';
subject ='来自网站的询问';
subject = 'Enquiry from Website';
这篇关于如何添加php脚本以检索from:电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文