[请益] 表单+phpmailer发信问题

楼主: x3000zro (Jwer)   2015-08-08 16:46:15
各位大大好 小弟使用 synology 当作服务器并搭配phpmailer使用
目前写一个意见表如下范例
表单 + PHP 缩址:ppt.cc/umTf4 (index.html+sendmail.php)
麻烦大大前面自加 http 不然他不给我发文 ..
当我按下传送邮件就跳到php的页面,但是什么都没显示
synology 里的 OpenSSL support 已设为 enabled
synology 里的 php.ini 的[mail function]设定为
[mail function]
;For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 465
;For Win32 only.
sendmail_from = @gmail.com
还有用telnet 来测试 SMTP
telnet 主机 跟 helo 主机 都有回应 正常
但是 mail from 显示->501 5.5.4 Syntax: MAIL FROM:<address>
rcpt to 显示->503 5.5.1 Error: need MAIL command
已经不知道如何下手 , 爬文爬到快疯掉 , 恳请各位大大协助 ..
作者: alog (A肉哥)   2015-08-08 17:55:00
用mailgun发
作者: poiuy999 (Nines)   2015-08-09 00:55:00
phpmailer 跟php.ini的smtp设定没关系吧

Links booklink

Contact Us: admin [ a t ] ucptt.com