Re: [PHP] pretty simple problem in mailing a dynamic page
Multipart Mime messages... you can't just put HTML source in an email... See Manuel's class on phpclasses.org for Regards, Justin French on 26/09/02 3:04 AM, usha ([EMAIL PROTECTED]) wrote: > I just want to email a dynamic page ( So I designed a page consisting of > datas pulled from db and are formated with html tags: here in below code $d is > such variable to be mailed) > > But the problem is that, instead the code contained in $d is sent. > > The code is as such: > $ebody="$d"; > mail("[EMAIL PROTECTED]", "The subject",$ebody,"From: > [EMAIL PROTECTED]\r\n"); > > Cna anyone give me solution for this pretty simple problem. > Regards > Usha > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pretty simple problem in mailing a dynamic page
You need to add another header telling it the content type = text/html On Wed, 2002-09-25 at 17:04, usha wrote: > I just want to email a dynamic page ( So I designed a page consisting of datas >pulled from db and are formated with html tags: here in below code $d is such >variable to be mailed) > > But the problem is that, instead the code contained in $d is sent. > > The code is as such: > $ebody="$d"; > mail("[EMAIL PROTECTED]", "The subject",$ebody,"From: [EMAIL PROTECTED]\r\n"); > > Cna anyone give me solution for this pretty simple problem. > Regards > Usha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] pretty simple problem in mailing a dynamic page
I just want to email a dynamic page ( So I designed a page consisting of datas pulled from db and are formated with html tags: here in below code $d is such variable to be mailed) But the problem is that, instead the code contained in $d is sent. The code is as such: $ebody="$d"; mail("[EMAIL PROTECTED]", "The subject",$ebody,"From: [EMAIL PROTECTED]\r\n"); Cna anyone give me solution for this pretty simple problem. Regards Usha