Re: Issues with Mail_mimedecode and mail templates

From: Date: Tue, 11 Oct 2005 09:24:34 +0000
Subject: Re: Issues with Mail_mimedecode and mail templates
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21348@lists.php.net to get a copy of this message
Forgot to show how i call it $this->tpl->compile('mail_admin.html'); $mailtext = $this->tpl->bufferedOutputObject($this); $mime = new Mail_Mime(); $decoder = new Mail_mimeDecode($mailtext); $this->email_template = $decoder->getSendArray(); //$params['include_bodies'] = true; //$params['decode_bodies'] = true; //$params['decode_headers'] = true;
						//$params['crlf']           = "\r\n";
//$decoder = new Mail_mimeDecode($mailtext); //$this->email_template = $decoder->decode($params); the bottom alternative commented out does the same thing however the getSendArray also returns a pear error because no headers were parsed of Message did not contain any recipents On 11/10/2005, at 7:19 PM, Dan Rossi wrote:
Hi there, for some strange reason the _splitBodyHeader is not parsing my template properly therefore nothing is being returned here is an example template that used to work, yes used to work without having to add recipitents as i add these after From: Sender: To: Subject: The subject Hello , the email body even adding information here, its still not coming up properly, i has some crazy preg match for carriage returns and new lines however i code on osx. if (preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $input, $match)) {
            return array($match[1], $match[2]);
} any ideas ? -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.general (#21348) next »