2012-03-30 51 views
0

我試圖用xampplite 1.7.7發送電子郵件。xampp lite ver 1.7.7無法發送電子郵件

我改變了我的如下php.ini文件即:

[mail function] 
; For Win32 only. 
; http://php.net/smtp 
;SMTP = localhost 
; http://php.net/smtp-port 
;smtp_port = 25 

; For Win32 only. 
; http://php.net/sendmail-from 
;sendmail_from = [email protected] 

; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 
; http://php.net/sendmail-path 
sendmail_path = "\"\xampp portable\sendmail\sendmail.exe\" -t" 

我還下載了最新版本的Sendmail而應用的,並提出以下chages它着,當然與我的電子郵件信息取代了它。

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

我仍然無法發送電子郵件以上的變化,如果有人可以幫助,請讓我知道謝謝。

+0

誰在'unix'上命名'sendmail.exe'? – Vytautas 2012-03-30 11:26:18

+0

你能用這種方式發送它(其他)xammp嗎?通過Gmail帳戶? – Xfile 2012-03-30 11:37:14

+0

我在Windows上使用xampp,而不是在Unix上,因此它有一個用於sendmail的.exe文件。 – Sahil 2012-03-30 14:07:54

回答

1

如果有;在行之前,這意味着它已被註釋掉

+0

是的我知道,但註釋掉的行應根據其中一個源代碼的教程註釋掉。 – Sahil 2012-03-30 12:01:16

+0

你能給我來源嗎? – user1287949 2012-03-30 12:10:48

+0

嗨,我遵循這個教程。 http://mattwad.wordpress.com/2011/11/13/send-emails-from-xampp-lite-on-windows/ – Sahil 2012-03-30 14:06:31