Generated Emails (CDO or Persits) Ignore Reply-To Settings

Discussion in 'Classic ASP' started by Thogek, May 18, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Is anyone else having the problem that, whether using CDO or Persits to general emails froma Web page, setting the Reply-To header no longer has any effect?

    I used this to correctly route responses to emails that were generated via a Web page, but recently all emails sent via my pages suddenly started ignoring my code's attempts to set Reply-To fields. Some of my users are rather non-technical, and don't notice when their reply-email's "to" field isn't what it should be...

    I've tested this on my DiscountASP.net web site using both CDO and Persits.ASPEmail; both have the same effect, making me suspect that it's a server/SMTP-level issue.

    Any thoughts? Anyone else?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    i created a little test script and the reply-to worked fine.

    I think your target mail server may be stripping that information.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. If by "your target mail server" you mean the one I'm using to send the email, that would be "localhost" -- i.e., the DiscountASP.NET server on which my site is running. If that server suddenly started stripping out Reply-To headers on outgoing emails, I'd like to know why.

    If by "your target mail server" you mean the one to which the emails are being sent, that seems oddly fortuitious, since these site-generated emails are sent to various different email servers (Earthlink, AOL, Yahoo!, etc. -- some directly and some though site-local forwarding addresses), and all of these are suddenly no longer receiving Reply-To headers in the emails. So it seems unlikely that they all started stripping out Reply-To headers at the same time.

    I've done multiple test scripts from my DiscountASP.NET Web site, as well, and this effect is consistant. My email-generating code (ASP/VBScript) has not changed in many months, but this just started happening within the last month. It is extremely frustrating, and makes my Web site's email-generation next-to-useless, since most of the people I have my site generating emails to are very non-technical, and do not have the presence of mind to lookat the email address they're responding to before sending replies (which means their replies are going nowhere, and the original senders are feeling ignored).

    Any ideas?
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    I created a test script that sends to Yahoo

    Here's the full email w/ header. Note that the Reply-To is intact.



    X-Apparently-To: [email protected] via 206.190.38.102; Fri, 19 May 2006 14:47:12 -0700
    X-Originating-IP: [64.79.161.42]
    Return-Path: <[email protected]>
    Authentication-Results: mta232.mail.re4.yahoo.com from=discountasp.net; domainkeys=neutral (no sig)
    Received: from 64.79.161.42 (EHLO web102.discountasp.net) (64.79.161.42) by mta232.mail.re4.yahoo.com with SMTP; Fri, 19 May 2006 14:47:12 -0700
    Received: from web102.dotnetplayground.com ([127.0.0.1]) by web102.discountasp.net with Microsoft SMTPSVC(6.0.3790.1830); Fri, 19 May 2006 14:47:12 -0700
    From: 'DiscountASP' <[email protected]> Add to Address BookAdd to Address Book Add Mobile Alert
    To: [email protected]
    Reply-to: [email protected]
    Subject: ASPEmail test from iis6hosting.com
    Date: Fri, 19 May 2006 14:47:12 -0700
    Message-ID: <[email protected]>
    MIME-Version: 1.0
    Return-Path: [email protected]
    X-OriginalArrivalTime: 19 May 2006 21:47:12.0097 (UTC) FILETIME=[C916FD10:01C67B8D]
    Content-Length: 65

    Congratulation
    If you receive this is, your mail component works


    ---------------------------------------------

    This is the code I used

    <html>
    <head>
    </head>


    <%


    Set Mailer = Server.CreateObject('Persits.MailSender')

    Mailer.Host = 'localhost'
    Mailer.FromName = 'DiscountASP'
    Mailer.From= '[email protected]'
    Mailer.AddAddress '[email protected]'
    Mailer.AddReplyTo '[email protected]'
    Mailer.Subject = 'ASPEmail test from ' & Request.ServerVariables('HTTP_HOST')
    Mailer.Body = 'Congratulation' & VbCrLf & 'If you receive this is, your mail component works'

    ' catch errors
    On Error Resume Next

    Mailer.Send

    If Err <> 0 Then ' error occurred
    Response.Write 'Mail send failure. Error was ' & Err.Description
    else
    Response.Write 'Mail sent'
    End If


    %>
    </body>
    </html>

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Arg. I found a silly bug in my own code that was disrupting the setting of the ReplyTo property. Duh. It's working now.

    Not sure why it was working before and then stopped, but...

    Thanks, Bruce!
     
  6. What is your reply-email's 'to' field supposed to be?? Just Curious ..

    i dont use Reply to and when I reply to a web based generated email, it has the correct email address to reply to ..

    Bahamas Security - BahamasSecurity.com
    Bahamas Real Estate - KnowlesRealty.com
     
  7. Basically, what I have are forms that allow Web site visitors to send email to specific roles within the organization. They can enter their own names and email addresses, and the ASP page will determine the appropriate recipient email addresses for use in sending the email. (Nothing unusual, there.)

    When configuring the generated email message, I use the target role's stored receipient address for the "to" address, but I use a standard email address like [email protected]for the "from" address and not the email address provided by the sender. My primary reason for this is that some email servers and other services will notice that the email bears a sender email address domain that does not match the domain/IP from which the email was sent, and might interpret that as an indicator that the email was spoofed, such as for spamming or other nefarious purposes. If they receive and notice a significant number of such emails over time, they might decide that I looktoo spammish, and do something to block my site's emails.

    As an example, my place of work did use the user-supplied sender email address as their Web site's send-this-to-a-friend generated email's "from" address for quite some time and ran into various problems and complaints along these lines because of it, and only finally corrected it when they heard that AOL was going to blacklist them as a spoofer/spammer. My site's email volume is much smaller than theirs, but the principal is the same, and I'd rather be safe.

    So my Web site generates emails with a hardcoded local-domain "from" address, and uses the email "Reply-To" field to ensure that recipients who choose to reply to their generated emails (and are generally not aware enough to notice the email address to which they are replying) will end up sending their replies to the right place.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page