fix broken disposition-notification request

This commit is contained in:
Klaus Leithoff 2014-11-20 15:54:10 +00:00
parent adfa95b45d
commit 7f1d9043b2
2 changed files with 3 additions and 2 deletions

View File

@ -2154,7 +2154,8 @@ class mail_compose
//error_log(__METHOD__.__LINE__.'$_mailObject->AddCustomHeader(List-Id: '. $_formData['list-id'].")");
$_mailObject->AddCustomHeader('List-Id: '. $_formData['list-id']);
}
if($_formData['disposition']) {
//error_log(__METHOD__.__LINE__.' notify to:'.$_identity['ident_email'].'->'.array2string($_formData));
if($_formData['disposition']=='on') {
$_mailObject->AddCustomHeader('Disposition-Notification-To: '. $_identity['ident_email']);
}
if(!empty($_identity->organization) && (mail_bo::$mailConfig['how2displayIdentities'] == '' || mail_bo::$mailConfig['how2displayIdentities'] == 'orgNemail')) {

View File

@ -29,7 +29,7 @@
</description>
<description class="email-button-group notification">
<description value="Recieve notification"/>
<checkbox statustext="check to recieve a notification when the message is read (note: not all clients support this and/or the reciever may not authorize the notification)" id="disposition" options="$cont[disposition]"/>
<checkbox statustext="check to recieve a notification when the message is read (note: not all clients support this and/or the reciever may not authorize the notification)" id="disposition" options="on,off"/>
</description>
<description class="email-button-group priority">
<description value="Priority"/>