how to send Email from localhost
Posted: Sat Aug 09, 2008 6:30 am
i want to send mail from localhost. can u help me?
thanks for advance
thanks for advance
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
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