是我的控制器
$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,但没有电子邮件来...有时它发送,但往往不发送。会发生什么?
答案 0 :(得分:1)