SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    PHP email or SMTP to avoid being a spammer?

    Do my website outgoing emails have a less chance as being tagged as spam, from various ISPs, if I use SMTP to send the email message? I use the email function in PHP now to send messages and several got blocked by the receiving ISP.

    Thank you.
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    358
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Assuming your smtp server is properly setup your mail should be more reliable when you send via the smtp server.
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon

  3. #3
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What do you mean if my SMPT server is properly setup? I've been using it for years to send mail from my POP accounts. The server is administered by my ISP, so I assume it's setup correctly. Did you have any further clarification that would be helpful?

    Thanks!
    Convert your dollars into silver coins. www.convert2silver.com

  4. #4
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    6 Thread(s)
    Hi busboy,

    The issue about SPAM is a fairly complex 'what do I need to do' conversation.

    When Doug G says
    Assuming your smtp server is properly setup your mail should be more reliable when you send via the smtp server.
    He refers in part to the need to ensure that your smtp hostname banner matches your email domain.

    Some SMTP servers will reject mail if the reverse DNS doesn't match the HELO/EHLO hostname used in the connection. If your mail server's hostname is mail.mydomain.com then your reverse DNS, MX record, HELO/EHLO, and SMTP greeting banner should all be mail.mydomain.com as well.

    SPF records set in the DNS servers in some companies to verify the IP space you send from. Companies that use this often deprioritize or mark as SPAM records that fail this SPF-enabled domain check.

    Then there is the volume, rate, and content of your email. Each play a part in how other mail servers and your ISP determine SPAM. Too high of volume then your ISP will blacklist your SMTP IP and Hostname. Same if your rate is too fast. You also need to worry about the typical content that these systems filter.

    Your ISP will not tell you the rate or limit that you can safely use, as the SPAMMERS will use this information to cleverly send SPAM within their rules. So your best to be conservative.

    On mail package that gives you fantastic control over how much and how fast is SwiftMailer.

    You are best to group large batches of email in 30 - 40 messages at one time with 10 minutes wait between the next queued batch.

    Hope this helps clarify some of the main issues.

    Regards,
    Steve
    ictus==""

  5. #5
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    358
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Plus if you are sending mail from within your code then your web server machine has all the same configuration requirements in order to reliably send email.
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon


Bookmarks

Posting Permissions

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