在Windows 8上无法发送带有php邮件功能的邮件
我已经在
windows 8上安装了wamp.
有错误:
这里是简单的源代码: <?php // The message $message = "Line 1rnLine 2rnLine 3"; // In case any of our lines are larger than 70 characters,we should use wordwrap() $message = wordwrap($message,70,"rn"); // Send mail('caffeinated@example.com','My Subject',$message); ?> 我必须通过php在Windows 8上安装哪些软件来发送电子邮件? sendmail,msmtp或ssmtp?
尝试这个
配置此设置 在php.ini SMTP=smtp.gmail.com smtp_port=587 sendmail_from = my-gmail-id@gmail.com sendmail_path = ""C:xamppsendmailsendmail.exe" -t" 在sendmail.ini中: smtp_server=smtp.gmail.com smtp_port=587 error_logfile=error.log debug_logfile=debug.log auth_username=my-gmail-id@gmail.com auth_password=my-gmail-password force_sender=my-gmail-id@gmail.com
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |