Menu

Reply To Field

Matt
2007-03-21
2013-04-02
  • Matt

    Matt - 2007-03-21

    How can I add a "ReplyTo" email address, so that I can direct all bounced emails to this address (i.e. in response to emails sent out that aren't valid). I've tried adding a "ReplyTo" header i.e. message.AddCustomHeader("ReplyTo", "bounceback@mydomain.com") but haven't succeeded in getting the replies directed to my bounce back email address. It's not an issue with my ISP or POP3 server as I can make this work with other, though less-preferred email components. Maybe my custom header "ReplyTo" is incorrect and doesn't conform with standard mail protocols.

    Matt

     
    • Mike Bridge

      Mike Bridge - 2007-03-21

      Hi-

      Did you include a hyphen in between "Reply" and "To"?  That might be the problem.

      You may also want to consider using the envelopefrom address---otherwise, human replies may go to the bounceback address....

      -Mike

       
      • Roy Higgs

        Roy Higgs - 2007-03-22

        I've been using Reply-To for a long time now and my bounce backs still come to the To address. I would absolutely LOVE for the bounce backs to go to the Reply-To address or figure out some way to make the bounce backs go to a different address than the To. I always figured that email servers just always used the To address, but is there a way to get them to use one of the other fields for bounce backs?

        The way I'm adding the Reply-To is as follows:

        message.AddCustomHeader( "Reply-To", replyTo );

        Thanks,

        Roy

         
      • Matt

        Matt - 2007-03-23

        I have inserted the hyphen but I haven't tried the envelope from address.

         
        • Mike Bridge

          Mike Bridge - 2007-03-23

          Hi-

          The envelope-from address is a value that is used during the initial SMTP negotiation, and it gets inserted as a "Return-path" header by the server.  It works very reliably for managing bounces, and to some extent with vacation messages, etc.  Although there are some RFCs which don't like this, it seems to work in practice with most MTAs. (see: http://en.wikipedia.org/wiki/Bounce_message\)

          -Mike

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.