SMTP with PHP
SMTP with PHP
Out of context: Reply #8
- Started
- Last post
- 9 Responses
- maximillion_0
if (strtoupper(substr(PHP_OS,0,3... {
$eol="\r\n";
} elseif (strtoupper(substr(PHP_OS,0,3... {
$eol="\r";
} else {
$eol="\n";
}
$headers .= 'From: '.$from.$eol;
$headers .= 'Bcc: '.$bcc.$eol;
$headers .= 'Reply-To: '.$from.$eol;
$headers .= 'Return-Path: '.$from.$eol;
$headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
$headers .= "X-Mailer: PHP v".phpversion();$mailSend = mail($to,$re,$msg,$headers);