cannot send mail
Posted by: shijith (---.52.101.203.touchtelindia.net)
Date: October 24, 2006 02:36PM

Hi,

I'm trying to send an e-mail from a .php script and ie6 returns this
error:


Warning: mail() [function.mail]: Failed to connect to mailserver at
"localhost" port 25, verify your "SMTP" and "smtp_port" setting in
php.ini or use ini_set() in C:\wamp\www\PAMWD\chap11email\sendmail.php
on line 12


I checked php.ini (line 606):


[mail function]
; For Win32 only.
SMTP = localhost


OTOH I didn't find "smtp_port" in php.ini



shijith hanan

Options: ReplyQuote
Re: cannot send mail
Posted by: CyberSpatium (71.237.217.---)
Date: October 24, 2006 03:06PM

wamp does not come with a email server, so you can not send email. you can use php class called phpmailer that will work though.

[phpmailer.sourceforge.net]

Options: ReplyQuote
Re: cannot send mail
Posted by: kwebihaf (64.152.195.---)
Date: November 24, 2006 09:16AM

thats of great help brother .

i didn't know about that

Options: ReplyQuote
Re: cannot send mail
Posted by: kongming57 (---.rivrw4.nsw.optusnet.com.au)
Date: December 04, 2006 03:18PM

use the new version , , they fix the bug, you can use the function in this version

good luck

Options: ReplyQuote
Re: cannot send mail
Posted by: intosoul (---.vc.shawcable.net)
Date: December 09, 2006 04:18AM

I am also having the same trouble. I went to [phpmailer.sourceforge.net] and download the said script but still don't get it working. I've installed the phpmailer in my Wamp directory.

In the php.ini, I set line 602
[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = [XXX@domain.com]

And in line 425
; Windows: "\path1;\path2"
;include_path = ".;F:\Wamp\phpmailer"

Did I do something wrong or did I missed a step? Thanks in advance.

Options: ReplyQuote


Sorry, only registered users may post in this forum.