You are here: Re: [PHP] sendmail crash « PHP « IT news, forums, messages
Re: [PHP] sendmail crash

Posted by Richard Lynch on 09/28/20 11:05

Michiel van der Blonk wrote:
> 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 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

Is the above the ACTUAL email you are sending?

Or merely a demonstrative sample?

Cuz, like, if the email you are REALLY sending is *HUGE* then I'd not be
surprised by the messages above...

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация