欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php mail()解决方法

程序员文章站 2024-02-15 23:05:34
...
php mail()

$name = $_POST['name'];
$emial = $_POST['email'];
$feedback = $_POST['feedback'];

$toaddress = '292200196@qq.com';
$subject = 'Feedback from web site';
$mailcontent = "Customer name: $name\n
Customer email: $emial\n
Customer comments:\n$feedback\n";
$fromaddress = 'From: 695565914@qq.com';

mail($toaddress, $subject, $mailcontent, $fromaddress);

?>

php.ini
[mail function]
For Win32 only.
SMTP = smtp.qq.com
smtp_port = 25

For Win32 only.
sendmail_from = 695565914@qq.com

错误提示:
Warning: mail() [function.mail]: SMTP server response: 503 Error: need EHLO and AUTH first ! in D:\wamp\apache\htdocs\test\processfeedback.php on line 14

求解释

------解决方案--------------------
https://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list
php mail()解决方法

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频