php mail()解决方法
程序员文章站
2022-06-13 15:40:23
...
php mail()
$name = $_POST['name'];
$emial = $_POST['email'];
$feedback = $_POST['feedback'];
$toaddress = [email protected]';
$subject = 'Feedback from web site';
$mailcontent = "Customer name: $name\n
Customer email: $emial\n
Customer comments:\n$feedback\n";
$fromaddress = 'From: [email protected]';
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
php.ini
[mail function]
For Win32 only.
SMTP = smtp.qq.com
smtp_port = 25
For Win32 only.
sendmail_from = [email protected]
错误提示:
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
$name = $_POST['name'];
$emial = $_POST['email'];
$feedback = $_POST['feedback'];
$toaddress = [email protected]';
$subject = 'Feedback from web site';
$mailcontent = "Customer name: $name\n
Customer email: $emial\n
Customer comments:\n$feedback\n";
$fromaddress = 'From: [email protected]';
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
php.ini
[mail function]
For Win32 only.
SMTP = smtp.qq.com
smtp_port = 25
For Win32 only.
sendmail_from = [email protected]
错误提示:
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如何自动跳转中英文页面_PHP教程
下一篇: 排序算法的分类
推荐阅读
-
iOS UICollectionView刷新时闪屏的解决方法
-
详解在iOS11下app图标变空白的问题解决方法
-
MYSQL不能从远程连接的一个解决方法(s not allowed to connect to this MySQL server)
-
详解PHP的Yii框架中扩展的安装与使用
-
php中关于mysqli和mysql区别的一些知识点分析
-
PHP全局变量与超级全局变量区别分析
-
MySQL服务器进程CPU占用100%的解决方法
-
PHP使用SOAP扩展实现WebService的方法
-
Android中Splash应用启动白屏问题的解决方法
-
PHP采用超长(超大)数字运算防止数字以科学计数法显示的方法