Re: Problem with Mail/mime.php

From: Date: Tue, 09 Jul 2002 11:59:39 +0000
Subject: Re: Problem with Mail/mime.php
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1817@lists.php.net to get a copy of this message
Bigarelli, I too have experianced the bug you mentioned bellow. See http://marc.theaimsgroup.com/?l=pear-general&m=102319988602223&w=1 for an explination and resolution. I hope that this fix will be added to pear mime soon. Michael "Bigarelli Giordano" <g.bigarelli@inwind.it> wrote in message news:007201c22654$cbe8dfa0$0200a8c0@gohan... > Hi, I've used the following code to send email with attachment from a web > page, all works fine but the content of the email is not always the same. > For example sometimes the email that arrives is correct, but more frequently > (to different people using microsoft outlook) parts of the header are > visible in the body with an unreadable attachment. > > $hdrs = array('From' => 'sender@a-domain.com', 'Subject' => > "$titolo", > "Reply-To" => 'sender@a-domain.com'); > $mime = new Mail_mime("\r\n"); > $mime->setTXTBody($text); > $mime->setHTMLBody($text); > $mime->addAttachment($HTTP_POST_FILES['file']['tmp_name'], > $HTTP_POST_FILES['file']['type'], > $HTTP_POST_FILES['file']['name']); > $m_body = $mime->get(); > $hdrs = $mime->headers($hdrs); > $mail =& Mail::factory('mail'); > $mail->send('receiver@a-domain.com', $hdrs, $m_body); > > How can I solve the problem? > > Thanx > Bigarelli Giordano >

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