Page 1 of 1

sending email

PostPosted: 03. November 2005 10:47
by sprogo
Hello,

I have installed XAMPP on two seperate computer, one in a win98se and other one in a XP Pro. XAMPP works very well in both of them.

The problem starts when a php script tries to send an email. In setup page of this script there are two options 1)unix sendmail and 2)php standart mail(). I choose php mail() during setup as I installed xampp on a windows computer.

The script returns the "Mail Sending Failed.." message to the page when it attempts to send an email.

Can anyone help me, guys ?

Regards
Sprogo

PostPosted: 04. November 2005 20:46
by thekingofcaseys
PHP MAIL will not work on a Windows Machine however i have managed to get around the problem by using a smtp server. you can get a smtp server online try looking in google or alternativley use your ISP's SMTP server Go to your php.ini file located in

APACHE/BIN

Look For

Code: Select all
[mail function]
; For Win32 only.
SMTP = smtp.XXXXXX.com
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com


Under Win32 Only Remove The ; And Then Insert An Email address you would like the mail to be sent from such as me@example.com in the above settings change XXXXX to the smtp.server.com you would like your mail to be sent from.

Your Final ini file hould look like below

Code: Select all
[mail function]
; For Win32 only.
SMTP = smtp.ntlworld.com
smtp_port = 25

; For Win32 only.
sendmail_from = john@doe.co.uk

PostPosted: 05. November 2005 01:25
by sprogo
Thank you thekingofcaseys,

It works now. It is very strange that it doesn't work for gmail account (I have checked the settings several times) but it is working very well for my ISP email settings.

Thanks a lot again
Sprogo

PostPosted: 13. November 2005 02:15
by AcCuMuL8r
ok..that is great if you have an ISP that will allow smtp connections...
What do I do as I do not have one?