SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why would a form only work for some emails?

    Hi,

    I'm working on a form script, and it works pretty well. Sends HTML emails to addys I specify.

    The only problem is, the script only works for some emails. Gmail and hotmail thus far. When I try to use the script on my personal emails, it never even gets to the server. I'm wondering if it's something wrong with my headers, or the "from" field. The forms are coming from an empty sender, so maybe the server assumes it's spam?

    But that doesn't explain why the "webmaster" copy of the form comes through fine; it has an empty from field as well. I'm completely stumped.

    I don't even know what code to post, since I don't know the cause of this problem. Anyone had similar experiences?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  2. #2
    SitePoint Guru MikeBigg's Avatar
    Join Date
    Jun 2004
    Location
    Reading, UK
    Posts
    970
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've had emails disappearing in the hotmail system ... the logs indicated that hotmail had accepted the email, but they never got through to the account, not even in the bulk folder.

    I traced this to a wrong content-type header line.

    Maybe you could post the headers of a mail that gets through to another account, but not hotmail or gmail.

    Mike

  3. #3
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the quick response. How do I get gmail or hotmail to display the fill content-type header line? I click "more options" and it just shows the usual To, From, Subject
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  4. #4
    Resident Code Monkey Chris Corbyn's Avatar
    Join Date
    Nov 2005
    Location
    Melbourne, Australia
    Posts
    713
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use a non web based client to pick up the mail. Gmail offer POP3 access, and thunderbird could show you the complete source.

  5. #5
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have some of the "webmaster" copies of the form in Thunderbird now. I don't see the content-type header. I may not be looking in the right place though.
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  6. #6
    SitePoint Guru MikeBigg's Avatar
    Join Date
    Jun 2004
    Location
    Reading, UK
    Posts
    970
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That maybe part of the problem. I thought that you needed content-type things with HTML emails so the email client could know how to display it.

    Can you send a html type email from your email client to that address? Then you can see how it should be done.

    Mike

  7. #7
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the form is sending the html emails just fine, but not to every address. i'm not sure I understand what it is you're asking.

    where do i go to read the content-type in Thunderbird?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  8. #8
    SitePoint Guru MikeBigg's Avatar
    Join Date
    Jun 2004
    Location
    Reading, UK
    Posts
    970
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know thunderbird, but there is probably an option to view headers.

    You say that the html eamils are sending just fine, but that *may* be due to the tolerance of the email client to a badly formed email.

    If you can't view the hearders with thunderbird, you might try using http://www.mail2web.com there is a function to view the headers on that site.

    Mike

  9. #9
    SitePoint Guru MikeBigg's Avatar
    Join Date
    Jun 2004
    Location
    Reading, UK
    Posts
    970
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Further to that, I just sent myself a simple html email and looked at the source (header) at mail2web.com. Here are a few of the headers:

    X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
    Content-class: urn:content-classes:message
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----_=_NextPart_001_01C69907.6088D8E3"
    Subject: A test
    Date: Mon, 26 Jun 2006 11:00:39 +0100
    When I had problems with mail dissappearing in Hotmail, it was because the content-type header line was wrong. As soon as that was corrected, all the mails got through.

    It may or may not be the problem you have, but it sounded similar.

    Take a look at the headers of your email and see what your content-type line is (if any).

    Mike

  10. #10
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any way to view the headers from hotmail or gmail?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  11. #11
    SitePoint Guru MikeBigg's Avatar
    Join Date
    Jun 2004
    Location
    Reading, UK
    Posts
    970
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not that I know of.

    d11wtg suggested gmail has pop access. If this is the case, then mail2web.com will be able to retrieve the emails.

    Mike

  12. #12
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it.. thx for all your input
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain


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
  •