A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Emails going to junk mail

  1. #1
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875

    Emails going to junk mail

    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...
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  2. #2
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    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

  3. #3
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    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?
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  4. #4
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    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.

  5. #5
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    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

  6. #6
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    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?

    PHP 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);

    ?>
    Thanks in advance for your help
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  7. #7
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    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

  8. #8
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    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
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  9. #9
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    you could just put
    $headers = "From: $fromName <$fromEmail>\n";
    $headers .= "To: \"John Doe\" <[email protected]>\n";
    It is certainly worth trying

    Musicman

  10. #10
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    Thanks for that musicman I'll give that a shot tommorow morning!! Cheers
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center