Bug #5114 [Opn->Csd]: fogottent back-slashes

From: Date: Wed, 17 Aug 2005 16:03:19 +0000
Subject: Bug #5114 [Opn->Csd]: fogottent back-slashes
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6678@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=5114&edit=1 ID: 5114 Updated by: ohill@php.net Reported By: tibo59 at msn dot com -Status: Open +Status: Closed Id: 5114 Type: Bug Package: Documentation Operating System: winXP PHP Version: 4.3.11 New Comment: This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2005-08-16 18:38:02] tibo59 at msn dot com 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 this bug report at http://pear.php.net/bugs/bug.php?id=5114&edit=1

« previous php.pear.doc (#6678) next »