mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
get document merge working again with new egw_mailer
This commit is contained in:
parent
be6393e91b
commit
94c5194ab0
@ -203,9 +203,9 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
* @param string|array|Horde_Mail_Rfc822_List $address
|
* @param string|array|Horde_Mail_Rfc822_List $address
|
||||||
* @param string $personal ='' only used if $address is a string
|
* @param string $personal ='' only used if $address is a string
|
||||||
*/
|
*/
|
||||||
function AddCc($address, $personal=null)
|
function addCc($address, $personal=null)
|
||||||
{
|
{
|
||||||
$this->AddAddress($address, $personal, 'cc');
|
$this->addAddress($address, $personal, 'cc');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -222,9 +222,9 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
* @param string|array|Horde_Mail_Rfc822_List $address
|
* @param string|array|Horde_Mail_Rfc822_List $address
|
||||||
* @param string $personal ='' only used if $address is a string
|
* @param string $personal ='' only used if $address is a string
|
||||||
*/
|
*/
|
||||||
function AddBcc($address, $personal=null)
|
function addBcc($address, $personal=null)
|
||||||
{
|
{
|
||||||
$this->AddAddress($address, $personal, 'bcc');
|
$this->addAddress($address, $personal, 'bcc');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -241,9 +241,9 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
* @param string|array|Horde_Mail_Rfc822_List $address
|
* @param string|array|Horde_Mail_Rfc822_List $address
|
||||||
* @param string $personal ='' only used if $address is a string
|
* @param string $personal ='' only used if $address is a string
|
||||||
*/
|
*/
|
||||||
function AddReplyTo($address, $personal=null)
|
function addReplyTo($address, $personal=null)
|
||||||
{
|
{
|
||||||
$this->AddAddress($address, $personal, 'replyto');
|
$this->addAddress($address, $personal, 'replyto');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -321,7 +321,7 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
* @param string $type File extension (MIME) type.
|
* @param string $type File extension (MIME) type.
|
||||||
* @return int part-number
|
* @return int part-number
|
||||||
*/
|
*/
|
||||||
public function AddStringAttachment($content, $filename, $type = 'application/octet-stream')
|
public function addStringAttachment($content, $filename, $type = 'application/octet-stream')
|
||||||
{
|
{
|
||||||
// deprecated PHPMailer::AddStringAttachment($content, $filename = '', $encoding = 'base64', $type = 'application/octet-stream') call
|
// deprecated PHPMailer::AddStringAttachment($content, $filename = '', $encoding = 'base64', $type = 'application/octet-stream') call
|
||||||
if ($type === 'base64' || func_num_args() == 4)
|
if ($type === 'base64' || func_num_args() == 4)
|
||||||
@ -364,7 +364,7 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
/**
|
/**
|
||||||
* Reset all Settings to send multiple Messages
|
* Reset all Settings to send multiple Messages
|
||||||
*/
|
*/
|
||||||
function ClearAll()
|
function clearAll()
|
||||||
{
|
{
|
||||||
$this->__construct($this->account);
|
$this->__construct($this->account);
|
||||||
}
|
}
|
||||||
@ -373,11 +373,11 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
* Get value of a header set with addHeader()
|
* Get value of a header set with addHeader()
|
||||||
*
|
*
|
||||||
* @param string $header
|
* @param string $header
|
||||||
* @return string
|
* @return string|array
|
||||||
*/
|
*/
|
||||||
function getHeader($header)
|
function getHeader($header)
|
||||||
{
|
{
|
||||||
return $this->_headers ? $this->_headers->getString($header) : null;
|
return $this->_headers ? $this->_headers->getValue($header) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -429,7 +429,8 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$base = $this->getBasePart();
|
$base = $this->getBasePart();
|
||||||
return $base->findBody($subtype);
|
if (!($part_id = $base->findBody($subtype))) return null;
|
||||||
|
return $base->getPart($part_id);
|
||||||
}
|
}
|
||||||
catch (Exception $e) {
|
catch (Exception $e) {
|
||||||
unset($e);
|
unset($e);
|
||||||
@ -442,7 +443,7 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
*
|
*
|
||||||
* Used in merge-print to remove headers before sending "new" mail
|
* Used in merge-print to remove headers before sending "new" mail
|
||||||
*/
|
*/
|
||||||
function ClearCustomHeaders()
|
function clearCustomHeaders()
|
||||||
{
|
{
|
||||||
foreach($this->_headers->toArray() as $header => $value)
|
foreach($this->_headers->toArray() as $header => $value)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user