mail arrives not in hotmail and in yahoo in trash

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hockmen
Forum Newbie
Posts: 3
Joined: Wed Oct 19, 2005 6:06 am

mail arrives not in hotmail and in yahoo in trash

Post by hockmen »

hello everybody,

as you see i'm a new user off this forum. i registrated here beceause i'm breacking my brains for several weeks on a simple mail() function script.
as you see in subject my problem is the following.

i'm scripting a newsletter for a restaurant. when i send it, the mail arrives in gmail(now problem at all), yahoo in trash and hotmail don't receive him at all. hotmail receives him only when i turn the filter on low.

i did my script on several manners this is how it looks to day:
as you can see its a html mail only for sending a .gif on the top off the mail

Code: Select all

$content= $_POST[testarea];
$logo = '<img src="http://www.huizegermeaux.be/images/logoGermeaux.gif" height="46" width="490">';

$to  = "$rij[mail]"; 
$subject = "$onderwerp";
$message = "$logo".$content."";

$headers = "From: 'Huize Germeaux'<mail@huizegermeaux.be>\n";  
$headers .= "MIME-Version: 1.0\n"; 
$headers .= "Content-Type: text/HTML; charset=ISO-8859-1\n";
$headers .= "X-mailer: php/" . phpversion(); 

mail($to, $subject, $message, $headers,'-fmail@huizegermeaux.be');
it's just so a simple script, but i can't find the bug.

can somebody help me with it?

sanny
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Code: Select all

$headers = "From: 'Huize Germeaux'<mail@huizegermeaux.be>\n";
That's most likely the problem. They've either identified you or your host as a spammer (not very likely), or they've decided that something about the title/content of the mail is objectionable and characteristic of spam. Try putting some content in apart from the GIF image, so it doesn't look like an ad to the mail filter.
hockmen
Forum Newbie
Posts: 3
Joined: Wed Oct 19, 2005 6:06 am

Post by hockmen »

first off all, thnx for the reply.

the $content is a var i send from a texteditor. when i send the $message without the .gif it's the same problem eventualy.

knows nobody a solution to avoid the filter. some kind of code?

kindly regards
sanny
hockmen
Forum Newbie
Posts: 3
Joined: Wed Oct 19, 2005 6:06 am

Post by hockmen »

well does nobody knows an answer to this?
for me it's very inportant, just some kind of way to mak it work.

is it my provider?
is it my script?

i searched on the web for solutions, but i used them allready in my script above.

come on scripters you can do it :)

sanny
Post Reply