SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist captainccs's Avatar
    Join Date
    Mar 2004
    Location
    Caracas, Venezuela
    Posts
    516
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Question Detecting undelivered email

    I'm planning a service (in a LAMP environment) that sends time sensitive email notices to members. Is there a way to find out if the email was undelivered or bounced?
    Denny Schlesinger
    web services

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    No. Any properly configured mail server will simply delete any undeliverable mail without returning a response. Where a server does return a response it allows spammers to tell which emails they sent actually got delivered and which didn't so that in future they can limit the spam they send to that server to just the email addresses that actually exist.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,889
    Mentioned
    74 Post(s)
    Tagged
    6 Thread(s)
    I have vague memories of enclosing a link to an image on your server then counting from logs how many times the image was viewed.
    Last edited by John_Betong; May 2, 2013 at 17:15. Reason: does not answer question
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Wolfshade on earning Member of the Month for August 2014

  4. #4
    SitePoint Evangelist captainccs's Avatar
    Join Date
    Mar 2004
    Location
    Caracas, Venezuela
    Posts
    516
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Makes sense but undeliverable notices do get sent to the sender. Get them from hotmail all the time (mailbox full). The receiving server sends them out unless black hole is specified. If I'm not mistaken these are sent to "Return-path:" Can I catch these?
    Denny Schlesinger
    web services

  5. #5
    SitePoint Evangelist captainccs's Avatar
    Join Date
    Mar 2004
    Location
    Caracas, Venezuela
    Posts
    516
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by John_Betong View Post
    I have vague memories of enclosing a link to an image on your server then counting from logs how many times the image was viewed.
    It might not answer the question exactly but it opens possibilities. The link to an "image" does not have to be to an image, it can be to a script.
    HTML Code:
    <img src="http://mydomain.com/script.php?id=myusersID" />
    Thanks!
    Denny Schlesinger
    web services

  6. #6
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by John_Betong View Post
    I have vague memories of enclosing a link to an image on your server then counting from logs how many times the image was viewed.
    That's why email programs now default to disabling linked images and only displaying embedded images by default. The spammers were containing a 1x1 pixel transparent image on their site that they linked into the emails that they sent and insecure email programs would then add an entry to the spammers log indicating that some fool had actually opened their spam.

    Any indications that you do get that email wasn't delivered indicates that the recipient's mail server is insecure and broadcasting information to spammers as to what email addresses exist on that server. In that case the most likely reason that your email cannot be delivered is because the recipient's mailbox is full due to all the spam sent to them.


    Where their email server and email program are properly secured to prevent spammers from knowing whether their email address exists or not then any emails you send them that cannot be delivered will not tell you that they didn't get there.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •