Mail

From: Date: Wed, 05 Jan 2005 18:21:10 +0000
Subject: Mail
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16666@lists.php.net to get a copy of this message
Hi I am having a problem with sendmail. It gives me a segfault when I use the Mail and Mail_Mime package right when I call sendmail. I have another page that sends mail fine using the same packages. I am using the following params Array ( [host] => localhost [port] => 25 [auth] => 1 [username] => account [password] => secret [sendmail_path] => /path/to/sendmail ) Then I prepare and call the send command $hdrs = array( 'From' => $from, 'Subject' => "Confirmation for $person->FIRST_NAME $person->LAST_NAME", 'Bcc' => me@here.com ); $mime = new Mail_mime($crlf); $text="text"; $html="<html><body>text</body></html>"; $mime->setTXTBody($text); $mime->setHTMLBody($html); $mail =& Mail::factory('sendmail', $params); return $mail->send($person->EMAIL, $hdrs, $body); Result: Apache error messages: emalloc: cannot allocate ... bytes and also erealloc: cannot allocate ... bytes I just upgraded to php 4.3.9 on FreeBSD. any ideas? Michiel -- Kind regards, Michiel ***************************** Michiel van der Blonk CaribMedia Marketing & Consultancy N.V. Oranjestad, Aruba Tel: (297) 583-4144 Fax: (297) 582-6102 http://www.caribmedia.com ---------------------------------------------------- Website Design, Web Application Development, Web Hosting, Internet Marketing ---------------------------------------------------- Operators of: Visit Aruba - http://www.VisitAruba.com Aruba Links - http://www.ArubaLinks.com Aruba Business Directory - http://www.visitaruba.com/business/ Aruba Real Estate Locator - http://www.arubarealestate.com Aruba Bulletin Board - http://bb.visitaruba.com/ Aruba Trip Reports - http://tripreports.visitaruba.com Aruba Chat - http://chat.visitaruba.com The VisitAruba Plus SAVINGS CARD - http://www.visitaruba.com/plus/ Contents of this communication are confidential and legally privileged. This document is intended solely for use of the individual(s) or entity/entities to whom it is addr

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