Page 1 of 1

how to send mail using php mail function?

Posted: Tue Apr 07, 2009 2:40 am
by kjsivakumar
hello all
This is sivakumar.
I have some doubt in php mail function. if i tried to send a mail from my php script then i ll get some error like this "Failed to connect mailserver at localhost verify your smtp and smpt_port settings".

please kindly help me

how to configure my php.ini file?
how do i set my smtp?
how do i connect to the internet?

i am waiting for your answer. please let you know me.

by
sivakumar

Re: how to send mail using php mail function?

Posted: Thu Apr 09, 2009 1:36 pm
by nyoka
The php mail command works well for me, judging by the error have you setup a mail system on you local machine?