Results 1 to 3 of 3

Thread: email reply doesn't honor reply-to header

  1. #1
    rogersugarsugar is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    38

    Default email reply doesn't honor reply-to header

    We receive a lot of email where the sender is different from the address to reply to (hence the use of the reply-to header), and we have to reply to a lot of it.

    I noticed that sugar does not do this. Is this an oversite in the design or a bug? Is there an easy fix?

    Thanks.

  2. #2
    lonecrow is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    36

    Default Re: email reply doesn't honor reply-to header

    I have the same behavior and need a fix as well. I looked in inboundemail.php and the code looks like it favors reply-to but the reply-to-address column in the db is null for all records.

    For a test I loaded a valid address into the reply-to-address column in the database and tried replying via the interface but it still uses the from-address.

    So it seems that its not just the inbound email parser not reading and saving the reply-to but also the code that retrieves from the db for replies as well.

    Any scrap of info appreciated

  3. #3
    lonecrow is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    36

    Default Re: email reply doesn't honor reply-to header

    I have a partial fix.

    in /modules/emails/editview.php I found this line:

    $focus->to_addrs = $ieMail->from_addr;

    and replaced it with this:

    if(!empty($ieMail->reply_to_addr)) {
    $focus->to_addrs = $ieMail->reply_to_addr;
    } else {
    $focus->to_addrs = $ieMail->from_addr;
    }

    The part not yet solved is why the reply_to_addr of incoming emails is not being parsed and saved to the db. It looks to me like the reply to name and address are both being saved in the reply_to_name column. So what I am going to do is modify the above fix to:

    if(!empty($ieMail->reply_to_name)) {
    $focus->to_addrs = $ieMail->reply_to_name;
    } else {
    $focus->to_addrs = $ieMail->from_addr;
    }

    (in all my records the reply_to_name takes the form of either a@b.c or "Some Name <a@b.c" both of which work in the to field of outgoing messages.)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HOW-TO guide for Email Campaigns.
    By agupta in forum Marketing/Campaign Management
    Replies: 146
    Last Post: 2012-01-31, 03:08 PM
  2. Poll: Dump Sugar Mail and integrate something better?
    By bjs3 in forum General Discussion
    Replies: 246
    Last Post: 2011-11-23, 04:05 PM
  3. email marketing feature requests
    By maxsutter in forum Feature Requests
    Replies: 1
    Last Post: 2008-10-11, 10:19 AM
  4. Replies: 1
    Last Post: 2007-02-21, 11:42 AM
  5. Replies: 2
    Last Post: 2007-02-20, 12:38 AM

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
  •