Bug #19669 [Opn->Csd]: Mail/mailPart.php wrong

From: Date: Tue, 23 Oct 2012 08:30:29 +0000
Subject: Bug #19669 [Opn->Csd]: Mail/mailPart.php wrong
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9209@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19669&edit=1 ID: 19669 Updated by: alec@alec.pl Reported By: ryein dot goddard at gmail dot com Summary: Mail/mailPart.php wrong -Status: Open +Status: Closed Type: Bug Package: Mail_Mime Operating System: Cent OS Package Version: 1.8.5 PHP Version: Irrelevant -Assigned To: +Assigned To: alec Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: alec There was never such include call. There is require_once 'Mail/mimePart.php'; Previous Comments: ------------------------------------------------------------------------ [2012-10-22 23:36:17] #3e4e99a669e0383d7c6 Description: ------------ I am not sure if this is just on my setup, but I use go-pear.php to install my pear front end and then I installed Mail_mime package. After installing I attempted to use the Mail.php file in the root and inside the /Mail/mime.php file there was an include("Mime/mimePart.php"); Which gave me an error saying it couldn't find the file so I changed it to include("mimePart.php"); That worked not sure if you have this worked out but figured I would let some one know. Test script: --------------- //change includes below require_once('../pear/PEAR/Mail.php'); require_once('../pear/PEAR/Mail/mime.php'); $message = new Mail_mime(); $message->setHTMLBody($messageBody); if(!empty($attachments)) { foreach($attachments as $attachment) { $message->addAttachment($this->getFilePath($attachment)); } } $body = $message->get(); $extraheaders = array("From"=>$senderEmail, "Subject"=>$messageSubject,"Reply-To"=>$senderEmail); $headers = $message->headers($extraheaders); $mail = Mail::factory("mail"); $mail->send($recipientEmail, $headers, $body); Expected result: ---------------- include("mimePart.php"); no error and file found Actual result: -------------- include("Mime/mimePart.php"); error : file not found ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19669&edit=1

« previous php.pear.bugs (#9209) next »