Send mail via PHP

22 March 2009 | HowTo | Tags: ,

First of all you have to change in your php.ini file if you do not have any mail server installed on your server/computer. You can send through your ISP SMTP server. Change this line in php.ini:

SMTP = localhost

To any vaild SMTP server, in my case I use my ISP smtp-server:

SMTP = smtp.bredband.net

When this is done you can easy send mail via PHP function mail()

Good Luck.


Leave a Reply