Whoa Yeah
0
Q:

php mail function smtp settings

//Setup the SMTP server settings !
//INI Setup not needed on Linux when sendmail or postfix is installed
//mail DOES not support AUTH - USE ONLY WITH OPEN RELAY
ini_set("SMTP", "smtp.example.com");
ini_set("smtp_port", 25);
ini_set("sendmail_from", "[email protected]");

//DO NOT WASTE TIME SETTING THESE BELOW FOR AUTH - JUST USE PHP MAILER
/*
auth_username = username 
auth_password = password 
OR
username = username 
password = password 
*/


$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

$headers .= 'From:No Reply<[email protected]>' . "\r\n";
$headers .= 'Reply-To:Info<[email protected]>' . "\r\n";
$headers .= 'Cc:Carbon<[email protected]>' . "\r\n";


mail("[email protected]", "Subject", "Hello World!", $headers);
1

New to Communities?

Join the community