issue with mail in php

Status
Not open for further replies.

nicolas.brieuc28

New Member
Messages
3
Reaction score
0
Points
1
Hi,

I have been trying unsuccessuly to send an email with the following php command:

$to = 'xxx@gmail.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: contact@xxx.x10.mx' . "\r\n" .
'Reply-To: contact@xxx.x10.mx' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);

No error, but no emal sent...

Is there any known issue with the sending of email?

Thanks

Nicolas
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

There does appear to be an issue with mail on your server (admins are aware), but that script wouldn't work even if the server was fine.
The content type header must be present and set to text/plain for mail to send correctly.

Thanks.
 
Status
Not open for further replies.
Top