sending email in PHP

Last post 06-04-2009 4:54 PM by TATWORTH. 1 replies.

Sort Posts:

  • sending email in PHP

    06-04-2009, 7:13 AM
    • Member
      153 point Member
    • chandradev1
    • Member since 11-19-2008, 9:50 AM
    • Bangalore(India)
    • Posts 131

    Hi

    I m using the one source code for sending email in php. It is working for gamil account, but for other account it is not working. could u point the error ?

    <?php
    header("Location:http://www.3dcad.co.in/thanks.html");


    $totalcomments.="NAME: ".$_POST['name']."\n";
    $totalcomments.="EMAIL: ".$_POST['email']."\n";
    $totalcomments.="CONTACT NO: ".$_POST['contact']."\n";
    $totalcomments.="DESCRIPTION: ".$_POST['description']."\n";

    $subject ="ENQUIRY FROM WEB SITE";
    $message = $totalcomments;

    $headers =
    $mailto = "syed786patu@gmail.com";
    mail($mailto,$subject,$message,"From:$mailto\r\nContent-type: text/html; charset=us-ascii");
    exit();
    ?>

     

    Chandra Dev
    Filed under:
  • Re: sending email in PHP

    06-04-2009, 4:54 PM
    Answer
    • All-Star
      62,439 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 8:34 AM
    • England
    • Posts 12,183
    • TrustedFriends-MVPs
    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Page 1 of 1 (2 items)