Сделано в Раскрутке

Архив эхоконференции RU.PHP

- RU.PHP ------------------------------------------------------------- RU.PHP -
 Msg  : #9048 [872]
 От   : Alexander A. Lyadenko         2:463/614.202       18 июня 04, 20:53
 Кому : Andrey A Popkov                                   18 июня 04, 23:08
 Тема : Продвинутая рассылка ...
-------------------------------------------------------------------------------
@RealName Alexander A. Lyadenko
/_*.ready*_/

18 июн 04 10:31, you wrote to All:
 AP>       *  отсылать  участникам  фоpума  новые сообщения фоpума  на
 AP> мыло  в  html. (!!!)
в догонку:

Mail_Mime
Table of Contents
Mail_Mime::Mail_Mime() -- creates a new instance
Mail_Mime::addAttachment() -- add attachment
Mail_Mime::addHTMLImage() -- add image to message
Mail_Mime::get() -- build the message
Mail_Mime::headers() -- build the header lines
Mail_Mime::setHTMLBody() -- set HTML part
Mail_Mime::setTxtBody() -- set plain text part
Mail_Mime - Example -- generation and sending of a MIME mail
Mail_mimePart::Mail_mimePart() -- constructor
Mail_mimePart::addsubpart() -- add sub part to a MIME part
Mail_mimePart::encode() -- encode a mail
Mail_mimeDecode::Mail_mimeDecode() -- constructor
Mail_mimeDecode::decode() -- perform decoding
Mail_mimeDecode::uudecode() -- decode of UU-coded data
Mail_mimeDecode::getXML() -- create XML representation of MIME parts
Mail_mimeDecode - Example -- decode an email
A Package to enable easy creation of complex multipart emails. If you look for
a simple API for creating such emails, then Mail_Mime class will probably
suffice. Else you can use Mail_mimePart, which gives you better control about
MIME creation.

Mail_mimeDecode provides a API for decode MIME data.

Mail_Mime - Example -- generation and sending of a MIME mail

Example
HTML version of email';
$file = '/home/richard/example.php';
$crlf = "\r\n";
$hdrs = array(
              'From'    => 'you@yourdomain.com',
              'Subject' => 'Test mime message'
              );

$mime = new Mail_mime($crlf);

$mime->setTXTBody($text);
$mime->setHTMLBody($html);
$mime->addAttachment($file, 'text/plain');

$body = $mime->get();
$hdrs = $mime->headers($hdrs);

$mail =& Mail::factory('mail');
$mail->send('postmaster@localhost', $hdrs, $body);
?>

вот и все.



/_*---------------------------------------------------------------[80`s]----*_/
---
 * Origin: аквалангисты - это хорошо. (2:463/614.202)


При переходе по баннеру - скидка 25% на первый месяц обслуживания!
Самый простой способ получить ROOT-доступ
При переходе по баннеру - скидка 25% на первый месяц обслуживания!