From cc51047fc1b0a21a0491c34487661698567c2100 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 29 Oct 2008 23:25:51 +0000 Subject: [PATCH] Properly construct Return-Receipt-To header git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13313 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index 37a2887c..ee7130d1 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1523,7 +1523,7 @@ function deliverMessage(&$composeMessage, $draft=false) { /* Receipt: On Delivery */ if (!empty($request_dr)) { //FIXME: it would be better to fiddle with headers inside of the message object or possibly when delivering the message to its destination; is this possible? - $rfc822_header->more_headers['Return-Receipt-To'] = $from->mailbox.'@'.$from->domain; + $rfc822_header->more_headers['Return-Receipt-To'] = $from_addr; } elseif (isset($rfc822_header->more_headers['Return-Receipt-To'])) { unset($rfc822_header->more_headers['Return-Receipt-To']); } -- 2.25.1