Bug #5114 [NEW]: fogottent back-slashes
| From: | tibo59 at msn dot com | Date: | Tue, 16 Aug 2005 22:38:03 +0000 |
| Subject: | Bug #5114 [NEW]: fogottent back-slashes | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6669@lists.php.net to get a copy of this message | ||
From: tibo59 at msn dot com
Operating system: winXP
PHP version: 4.3.11
Package: Documentation
Bug Type: Bug
Bug description: fogottent back-slashes
Description:
------------
you have gorgotten 2 back-slashes in your code on page (french
version):http://pear.php.net/manual/fr/package.mail.mail-mime.example.php
the code code I think:
<?php
include('Mail.php');
include('Mail/mime.php');
$text = 'Version texte de l\'email';
$html = '<html><body>Version HTML de l\'email</body></html>';
$file = '/home/jean/exemple.php';
$crlf = "\n";
$hdrs = array(
'From' => 'vous@votredomaine.com',
'Subject' => 'Test message MIME'
);
$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);
?>
thanks
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=5114&edit=1
--