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.
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.