Hello! I am sorry to hear you are having a problem with the php mail function. I just ran a test on one of our servers with the following code and it seamed to work.
$headers = ‘MIME-Version: 1.0’ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=utf-8’ . “\r\n”;
$headers .= ‘From: Name ‘ . “\r\n”;
$headers .= ‘Reply-To: Name ‘ . “\r\n”;
$subject = ‘Subject Line’;
$message .= ‘Body goes here! — HTML Code works here :)’;
mail($to,$subject, $message, $headers);
—
If you don’t mind, could you try running that code on your server to see if it works? If it does, then you can simply modify it so that it works with your needs, otherwise, please contact our support department so that we can find out whats going on.
Answer #1
Hello! I am sorry to hear you are having a problem with the php mail function. I just ran a test on one of our servers with the following code and it seamed to work.
—
$to = ‘[email protected]’;
$headers = ‘MIME-Version: 1.0’ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=utf-8’ . “\r\n”;
$headers .= ‘From: Name ‘ . “\r\n”;
$headers .= ‘Reply-To: Name ‘ . “\r\n”;
$subject = ‘Subject Line’;
$message .= ‘Body goes here! — HTML Code works here :)’;
mail($to,$subject, $message, $headers);
—
If you don’t mind, could you try running that code on your server to see if it works? If it does, then you can simply modify it so that it works with your needs, otherwise, please contact our support department so that we can find out whats going on.