Closed Thread
Results 1 to 3 of 3

Thread: Email functionality doesn't seem to be working

  1. #1
    chintandesai2381 is offline x10Hosting Member chintandesai2381 is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    5

    Email functionality doesn't seem to be working

    Hi Support,

    I am not able to send any emails from my website www.***********. I have created test page http://www.*******/testemail.php with following code. It returns "Email sent successfully" but I am not getting any emails (I have check spam as well). Same is with my contact us page. I have also set forwarders from "info@*********" to "*********@yahoo.com" which doesn't seem to be working either. Can you please help me to figure this out? Thanks a lot.

    Regards,

    ****** ******i.

    Code : http://www.**************/testemail.php
    <?php

    $msg = "test";
    $headers = "From: info@***********u\r\n";
    $headers .= "Reply-To: info@*********\r\n";
    $headers .= "Content-type: text/html\r\n";
    if(!(mail("*********3@yahoo.com", "From ******** website - User Query", $msg, $headers)))
    echo "<li>Failed Sending Email</li>";
    else
    echo "Email sent successfully";
    ?>
    Last edited by descalzo; 03-26-2011 at 09:22 PM.

  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,635

    Re: Email functionality doesn't seem to be working

    Change :

    $headers .= "Content-type: text/html\r\n";

    to

    $headers .= "Content-type: text/plain\r\n";
    Nothing is always absolutely so.

  3. #3
    chintandesai2381 is offline x10Hosting Member chintandesai2381 is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    5

    Re: Email functionality doesn't seem to be working

    Hi Support,

    Thanks for your response. Its working now as per your suggestion.

    I am closing this thread. But is it possible to delete this tread as I didn't know it will be access by public and also it include my email addresses?

    Thanks a lot for your help.

    Regards,
    Chintan Desai.

Closed Thread

Similar Threads

  1. ETA for normal functionality
    By smartflight in forum Free Hosting
    Replies: 4
    Last Post: 06-17-2010, 03:43 AM
  2. Still no SQL functionality on BORU
    By verboten in forum Free Hosting
    Replies: 0
    Last Post: 04-13-2010, 01:20 AM
  3. Replies: 2
    Last Post: 02-22-2010, 02:22 PM
  4. Replies: 3
    Last Post: 02-11-2010, 02:09 PM
  5. Flashy or Functionality?
    By dwd2000 in forum Crossfire
    Replies: 18
    Last Post: 03-06-2008, 01:11 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