how to send mail using php mail function?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kjsivakumar
Forum Newbie
Posts: 1
Joined: Tue Apr 07, 2009 2:32 am

how to send mail using php mail function?

Post 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
nyoka
Forum Commoner
Posts: 45
Joined: Thu Apr 09, 2009 12:53 pm

Re: how to send mail using php mail function?

Post by nyoka »

The php mail command works well for me, judging by the error have you setup a mail system on you local machine?
Post Reply