How to use our mail servers with a custom PHP script

Input these three lines into your coding to specify the server, port, and from address:

ini_set("SMTP","mail.yourdomain.com");
ini_set("smtp_port","25");
ini_set("sendmail_from","validUser@yourDomain.com");

Add Feedback