i want to send mail from localhost. can u help me?
thanks for advance
how to send Email from localhost
Moderator: General Moderators
-
Devendiran
- Forum Newbie
- Posts: 1
- Joined: Sat Aug 09, 2008 6:24 am
Re: how to send Email from localhost
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