> 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: [EMAIL PROTECTED]"; > $mail_headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; > $mail_headers .= "Content-Transfer-Encoding: quoted-printable\r\n"; > > To: [EMAIL PROTECTED] > Subject: Test > From: [EMAIL PROTECTED], [EMAIL PROTECTED] > Reply-to: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED]"; > > To: [EMAIL PROTECTED] > Subject: Test > Content-Type: text/html; charset=ISO-8859-1 > > Rejected: > Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 > From: [EMAIL PROTECTED], [EMAIL PROTECTED] > Reply-to: [EMAIL PROTECTED]
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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php