|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-18 12:03 UTC] gilles at clixicon dot nl
[2002-07-18 13:36 UTC] sniper@php.net
[2002-07-19 04:48 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 15:00:02 2025 UTC |
first of all, i could not get multiple CC's get to work: ----------------------------------- function send(){ $headers = ""; if($this->from_address != ""){ $headers .= "From: " . $this->from_address . "\r\n"; } if($this->cc_address != ""){ $cc = str_replace(" ","",$this->cc_address); $cc = str_replace(",",", ",$cc); $headers .= "Cc: " . $cc . "\r\n"; } mail($this->to_address, $this->subject, $this->message, $headers); } mail($this->to_address, $this->subject, $this->message, $headers); ------------------------------------------ this only sends a cc to the first cc address, so i checked what the headers looked like and i noticed that there was a blank space at the end. so i apply the trim function this to $headers: --------------------------------------------- function send(){ $headers = ""; if($this->from_address != ""){ $headers .= "From: " . $this->from_address . "\r\n"; } if($this->cc_address != ""){ $cc = str_replace(" ","",$this->cc_address); $cc = str_replace(",",", ",$cc); $headers .= "Cc: " . $cc . "\r\n"; } $headers_trimmed = trim($headers); mail($this->to_address, $this->subject, $this->message, $headers_trimmed); } --------------------------------------------- and there you have it: FATAL: emalloc(): Unable to allocate -10787289 bytes --- './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-imap' '--with-mysql=/usr' '--enable-track-vars' '--with-openssl=/usr/local/ssl' '--enable-sockets' '--with-xml' '--with-zlib' '--with-java=/usr/local/j2sdk1.4.0' '--with-pgsql' apache 1.3.26 sendmail-8.9.3-20