Whenever I send emails from my server they end up going into junk mail..(especially when its sent to a hotmail address)
Is there a list of things i can check off which may be causing it to go to junk mail?
Thanks in advance...
Printable View
Whenever I send emails from my server they end up going into junk mail..(especially when its sent to a hotmail address)
Is there a list of things i can check off which may be causing it to go to junk mail?
Thanks in advance...
Make sure the FROM address is a real address. Don't just use whatever the server decides to make up.
I know there are some others, but I can't seem to remember them. They all have to do with some kind of verifying that the sending domain is in a database of "good" senders. Something like that :confused:
Thanks .. yep the FROM address is the authentic address, also the SPF has been set up with the DNS name ... yet its still going to junk email... i've heard a server has to build up a reputation and until then it goes to spam..not sure how true that is though?
Ok, take a read about this: http://en.wikipedia.org/wiki/E-mail_authentication
And at the bottom there are links for SPF and DomainKeys. Those are what you need I do believe.
Hi,
could you just post fillheaders of an email . feel free to hide the recipient but keep everything else
About SPF and domainkeys: there are very few adopters,and they do not say it is not spam. They help to ensure that the sender is whatever the mail says, and not an innocent bystanders
Musicman
Thanks for that TACO, that article looks very detailed and I'm sure will enlighten me about email authentication...
Musicman thanks as well ... you mentioned about filling the postheaders of the email... the following is my email script ... what modifications to the headers can you suggest?
Thanks in advance for your helpPHP Code:<?php
$fromName = "Jane Doe";
$fromEmail = "[email protected]";
$toName = "John Doe";
$toEmail = "[email protected]";
//headers
$headers = "From: $fromName <$fromEmail>\n";
$headers .= "Reply-To: $fromName <$fromEmail>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1";
//the message body
$message1 =
"<body>
<table width='564' border='0' align='left' cellspacing='0' cellpadding='0'>
<tr>
<td>hello there how are you?</td>
</tr>
</table>
</body>";
// send the mail
mail($toEmail, "IQ Results", $message, $headers);
?>
Hi,
the headers look basically ok, but for a small security hole.
The question is how the mail appears in your inbox, i.e. things that depend more on the sending mailserver than on your script.When I use your script with my mail server, it does not add a To: header, sothe received mail would just say "To: undisclosed recipients"
About the security hole: imagine someone builds another flash form, or perhaps a html form, sending to your php file. The difference - fromName is multiline....
What do you believe would happen if the field is filled as
somename <someemail>
Bcc: long list of comma-separated email addresses
You could prevent that by adding code like
if(ereg("[\r\n]", $fromName)) die();
BTW: here is a sample of what I was looking for:
Code:X-Sieve: CMU Sieve 2.2
X-Spam-Status: No, score=-0.8 required=5.0 tests=AWL,UNPARSEABLE_RELAY
autolearn=ham version=3.1.4
X-Spam-Level:
Received: from mailin11.aul.t-online.de (mailin11.aul.t-online.de [172.20.27.69])
by mhead302 with LMTP; Sat, 08 Sep 2007 13:58:30 +0200
X-Sieve: CMU Sieve 2.2
Received: from fkwww.iworld.com ([63.236.18.172]) by mailin11.aul.t-online.de
with esmtp id 1ITyx2-233y9A0; Sat, 8 Sep 2007 13:58:12 +0200
Received: (from flashkit@localhost)
by fkwww.iworld.com (8.11.6/8.11.6) id l88BwBh09655;
Sat, 8 Sep 2007 07:58:11 -0400
Date: Sat, 8 Sep 2007 07:58:11 -0400
X-Authentication-Warning: fkwww.iworld.com: flashkit set sender to [email protected] using -f
To: [email protected]
Subject: New Private Message at Flash Kit Community Forums
From: "Flash Kit Community Forums" <[email protected]>
Auto-Submitted: auto-generated
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-Mailer: vBulletin Mail via PHP
X-TOI-SPAM: u;0;2007-09-08T11:58:30Z
X-TOI-VIRUSSCAN: unchecked
X-TOI-MSGID: 323aafd3-a166-4c61-aced-37df0d996719
X-Seen: false
X-ENVELOPE-TO: <[email protected]>
Musicman,
You have received a new private message at Flash Kit Community Forums from
Thanks for the info about the security hole..I'll make sure I close it up...
you mentioned my script does not add a TO header, how would I go about making sure it does add such a header? Is this the reason you think it may be being regarded as junk mail?
Thanks
Hi,
you could just put
$headers = "From: $fromName <$fromEmail>\n";
$headers .= "To: \"John Doe\" <[email protected]>\n";
It is certainly worth trying
Musicman
Thanks for that musicman I'll give that a shot tommorow morning!! Cheers