Results 1 to 2 of 2

Thread: Web form message goes to spam often

  1. #1
    Join Date
    Apr 2008
    Posts
    84
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Web form message goes to spam often

    Hi, all.

    It's probably because I'm using Yahoo, rather than my GoDaddy accounts email, but I thought I'd ask, anyway, haha.

    When my potential clients fill out the small form I have on my site, it goes to my Yahoos spam more than not, it seams. Anything I could change in the php file to prevent that, or is it just Yahoo being a pain?

    Here's the php I use:

    <?php

    $mailto = 'myemail@yahoo.com' ;
    $subject = "Geezer D Graphics and Web Design Project" ;
    $errorurl = "http://www.geezerd.com/error.html" ;
    $email = $_REQUEST['email'] ;
    $name = $_REQUEST['name'] ;
    $phone = $_REQUEST['phone'] ;
    $citystate = $_REQUEST['citystate'] ;
    $comment = $_REQUEST['comment'] ;


    if ( ereg( "[\r\n]", $lastname ) || ereg( "[\r\n]", $email ) ) {
    header( "Location: $errorurl" );
    exit ;
    }

    mail($mailto, $subject,
    "$name\n\n$email\n\n$phone\n\n$citystate\n\n$comment", "From: $email");
    header( "Location: http://www.geezerd.com/thanks.html" );

    ?>

    www.geezerd.com is the site it's on.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    You can learn a lot with Google.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •