mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:39:00 +01:00
allow to access ReplyTo of MailObject by extending classes; provide Function to retrieve replyTo Address; alter Method to detect wether a filename is already encoded, and if - do not try to use the basename as filename
This commit is contained in:
parent
56b9129f20
commit
6f0f6838cb
@ -199,6 +199,18 @@ class egw_mailer extends PHPMailer
|
||||
return parent::AddBCC($address, $name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the "ReplyTo" addresses.
|
||||
*
|
||||
* Function to retrieve the ReplyTo Addresses of the SMT Mailobject
|
||||
*
|
||||
* @return array with the reply-to mail addresse(s))
|
||||
*/
|
||||
public function GetReplyTo()
|
||||
{
|
||||
return $this->ReplyTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a string or binary attachment (non-filesystem) to the list.
|
||||
* This method can be used to attach ascii or binary data,
|
||||
@ -214,7 +226,7 @@ class egw_mailer extends PHPMailer
|
||||
// Append to $attachment array
|
||||
//already encoded?
|
||||
//TODO: maybe add an parameter to AddStringAttachment to avoid using the basename
|
||||
$x += preg_match_all('/[\000-\010\013\014\016-\037\177-\377]/', $filename, $matches);
|
||||
$x += preg_match('/\?=.+=\?/', $filename);
|
||||
$this->attachment[] = array(
|
||||
0 => $string,
|
||||
1 => $filename,
|
||||
@ -226,5 +238,4 @@ class egw_mailer extends PHPMailer
|
||||
7 => 0
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -343,7 +343,7 @@ class PHPMailer {
|
||||
private $to = array();
|
||||
private $cc = array();
|
||||
private $bcc = array();
|
||||
private $ReplyTo = array();
|
||||
protected $ReplyTo = array(); //this way extended classes may use this variable
|
||||
private $all_recipients = array();
|
||||
protected $attachment = array(); //this way extended classes may use this variable
|
||||
private $CustomHeader = array();
|
||||
|
Loading…
Reference in New Issue
Block a user