Re: mail not sending to multiple address

From: Date: Fri, 16 Feb 2001 00:54:40 +0000
Subject: Re: mail not sending to multiple address
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40038@lists.php.net to get a copy of this message
Try changing all your \n to \r\n. RFC is \r\n. Un*x mail programs are smart enough to take \n Microsoft mail programs are not that smart. Put in the space after Cc: and before your email. The space is *required* by some (all?) emailers? -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: "Peter Houchin" <peterh@vfsa.com.au> Newsgroups: php.general Sent: Tuesday, February 13, 2001 11:25 PM Subject: [PHP] mail not sending to multiple address > Can some one please have a look through this and give me a step in the right > direction asto why my mail script won't cc or bcc. I've checked with the > mail server admin and he said as far as the email server is concerned it > supports multiple email address.. it will only send to the $address but not > any other address.. > > /* recipients */ > > $address .= "$email" ;//note the comma > > // Subject > > $subject = "ABC Calculation Results"; > > file://Body of email > > $body = "Thank you $user,\n Your Rental Monthly Figures are as follows:\n > \n 24 Months = $ $m2 \n 36 Months = $ $m3 \n 48 Months = $ $m4 \n > Your Quartly Figures are: \n $ $q2 Over 24 Months \n $ $q3 Over 36 Months \n > $ $q4 Over 48 Months\n > \n\n\n\n > Thank you again from VFSA-eRentals</font>"; > > file://Where the email is from > > > $headers .= "From: ABC <webmaster@acb.com.au>\n"; > $headers .= "X-Sender: <webmaster@abc.com.au>\n"; > $headers .= "X-Mailer: PHP\n"; // mailer > $headers .= "X-Priority: 1\n"; // Urgent message! > $headers .= "Return-Path: <webmaster@abc.com.au>\n"; // Return path for > errors > > /* If you want to send html mail, uncomment the following line */ > file://$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type > > $headers .= "cc:peterh@abc.au\n"; // CC to > $headers .= "bcc:mattr@abc.com.au\n"; // BCCs to > > file://send the email > > $mailsend = mail("$address", "$subject", "$body.", "$headers \nContent-Type: > text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit" ); > print ("$mailsend"); > ?> > > Thanks > > Peter >

« previous php.general (#40038) next »