RE: [PHP] Mail Header - id this PHP

From: Date: Thu, 27 Mar 2003 02:30:44 +0000
Subject: RE: [PHP] Mail Header - id this PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141156@lists.php.net to get a copy of this message
> I am trying to format the mail header that will be send by mail(). > > One thing that I noticed was it only accept for the first no. of lines or > charracters (???) See sample 1 & 2. > > Is this a php problem (4.2.2) or has something to do the mailer ??? > > This script is working on (4.2.1) but is in different type of server. > > FYI, on header sent it has some other default header included > > > > > Example. (1) > > $mail_headers .= "MIME-Version: 1.0\r\n"; > $mail_headers .= "From: WEB\n"; > $mail_headers .= "Reply-to: $Email\n"; > $mail_headers .= "Bcc: webmaster@atlantishotel.com\n"; > $mail_headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; > $mail_headers .= "Content-Transfer-Encoding: quoted-printable\r\n"; > > To: info@domain.com > Subject: Test > From: WEB@domain.com, guest1@domain.com > Reply-to: user@domain.com > MIME-Version: 1.0 > > Rejected > Content-Type: text/html; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > > Example (2) > > > $mail_headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; > $mail_headers .= "Content-Transfer-Encoding: quoted-printable\r\n"; > $mail_headers .= "MIME-Version: 1.0\r\n"; > $mail_headers .= "From: WEB\n"; > $mail_headers .= "Reply-to: $Email\n"; > $mail_headers .= "Bcc: webmaster@atlantishotel.com\n"; > > To: info@domain.com > Subject: Test > Content-Type: text/html; charset=ISO-8859-1 > > Rejected: > Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 > From: WEB@domain.com, guest1@domain.com > Reply-to: user@domain.com Use \r\n between all of your headers (at the end of your strings, above). Just using \n will not work. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#141156) next »