这是我的控制器
$to = "goeboekimutcs@gmail.com";
$subject = "Goeboek I-Mut";
$content = "<html><body><p>Test Content</p></body></html>";
$headers = "From: goeboekimutcs@gmail.com";
mail($to, $subject, $content, $headers);这是我的php.ini
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
sendmail_path = "\"D:\Programs\xampp\sendmail\sendmail.exe\" -t"
; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the D:\Programs\xampp\mailoutput folder
; sendmail_path="D:\Programs\xampp\mailtodisk\mailtodisk.exe"这是我的sendmain.ini
smtp_server=smtp.gmail.com
; smtp port (normally 25)
smtp_port=587
auth_username= goeboekimutcs@gmail.com
auth_password= **我在浏览器上打开我的控制器,加载后,我刷新了我的gmail,但没有收到电子邮件。有时它会发送,但通常不发送。发生了什么?
发布于 2015-05-28 19:52:23
https://stackoverflow.com/questions/30364353
复制相似问题