ClearAllRecipients should only clear recipients, not From, ReplyTo and such

This commit is contained in:
Klaus Leithoff 2013-08-05 13:44:44 +00:00
parent 243bb169a2
commit d22f24666b

View File

@ -271,7 +271,9 @@ class egw_mailer extends PHPMailer
* Clears all recipients assigned in the TO, CC and BCC array. Returns void. * Clears all recipients assigned in the TO, CC and BCC array. Returns void.
*/ */
public function ClearAllRecipients() { public function ClearAllRecipients() {
$this->addresses = array(); $this->addresses['to'] = array();
$this->addresses['cc'] = array();
$this->addresses['bcc'] = array();
parent::ClearAllRecipients(); parent::ClearAllRecipients();
} }