Log in

View Full Version : Web form message goes to spam often



Geezer D
06-06-2008, 12:27 AM
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.

Jas
06-08-2008, 07:29 PM
You can learn a lot with Google. (http://www.google.com/search?q=php+junk+mail&ie=utf-8&oe=utf-8)