Page 1 of 1

how to send Email from localhost

Posted: Sat Aug 09, 2008 6:30 am
by Devendiran
i want to send mail from localhost. can u help me?
thanks for advance

Re: how to send Email from localhost

Posted: Sat Aug 09, 2008 7:26 am
by eshban

Code: Select all

 
    ini_set("SMTP","smtp.yourisp.com");
    ini_set("smtp_port","25");
    ini_set("sendmail_from","info@mywebsite.com"); 
 
in your php file where you have write the email code. just put these three lines, and in first line, setup your isp smtp address.
 
secondly in php.ini, uncomment this line
 
SMTP = localhost
 
Thats all.
 
Thanks