2015-05-19 84 views
-1

對於一個學校項目,我需要將電子郵件從本地主機發送到Gmail。 我已經下載並複製了http://glob.com.au/sendmail/中的所有文件,並將它們粘貼到我的xampp/sendmail文件夾中。PHP郵件() - 無法從本地主機發送郵件到Gmail(xampp)

這是我的設置應該在技術上的工作。

sendmail.ini:

smtp_server=smtp.gmail.com 
smtp_port=587 
smtp_ssl=auto 
[email protected] 
auth_password=mypassword 

的php.ini:

sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" 
;sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe" 
; SMTP = localhost 
; smtp_port = 25 
+0

可能重複的[如何配置XAMPP從本地主機發送郵件?](http://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost ) –

回答

相關問題