Closed Thread
Results 1 to 4 of 4

Thread: mail function problem!

  1. #1
    m9127 is offline x10Hosting Member m9127 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    5

    mail function problem!

    cant send an email using mail() function in php... whats the problem??

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: mail function problem!

    What sort of script are you running? The relevant code would help.

    Are you getting error messages?

    Are you testing the return value? Is it saying the mail is sent, but it is not arriving at the destination?

    Did it work before on x10hosting and suddenly stop?
    Nothing is always absolutely so.

  3. #3
    m9127 is offline x10Hosting Member m9127 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    5

    Re: mail function problem!

    <?php
    $to = "somebody@example.com";
    $subject = "My subject";
    $txt = "Hello world!";
    $headers = "From: webmaster@example.com" . "\r\n" .
    mail($to,$subject,$txt,$headers);
    ?>

    no i didn't get an error

    yes its saying the mail is sent but it didn't arrive to the destination.

    no, it hasn't worked on x10hosting...

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: mail function problem!

    1. 'From' should be an email account on your domain
    2. Check that email account for bounced emails
    3. Hotmail and some others bounce emails from x10hosting's servers due to the abuse by a few. They do not even end up in the spam folder.
    4. On other providers, check the spam folder.
    5. You are not checking the return value of mail(). How can you say it is saying the mail is sent?
    Nothing is always absolutely so.

Closed Thread

Similar Threads

  1. mail() function problem!!
    By m9127 in forum Free Hosting
    Replies: 2
    Last Post: 01-26-2011, 01:30 PM
  2. [phpbb] problem with mail function
    By phijazz in forum Free Hosting
    Replies: 0
    Last Post: 02-06-2010, 04:19 PM
  3. problem of mail function
    By astrolog.x10hosting in forum Free Hosting
    Replies: 2
    Last Post: 02-02-2010, 05:35 AM
  4. problem with mail function
    By vishnurg in forum Free Hosting
    Replies: 1
    Last Post: 04-11-2008, 06:32 AM

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