Closed Thread
Results 1 to 2 of 2

Thread: issue with mail in php

  1. #1
    nicolas.brieuc28 is offline x10Hosting Member nicolas.brieuc28 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    3

    issue with mail in php

    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

  2. #2
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: issue with mail in php

    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.


Closed Thread

Similar Threads

  1. PHP mail issue
    By adamfek in forum Programming Help
    Replies: 2
    Last Post: 11-02-2009, 10:00 PM
  2. PHP mail issue
    By adamfek in forum Free Hosting
    Replies: 5
    Last Post: 10-19-2009, 11:33 AM
  3. mail server issue
    By browndrake in forum Free Hosting
    Replies: 0
    Last Post: 01-17-2009, 12:21 AM
  4. Mail issue.
    By krysber in forum Free Hosting
    Replies: 3
    Last Post: 09-30-2008, 03:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers