Re: what is wrong with this sniplet?

From: Date: Wed, 28 Feb 2001 22:55:07 +0000
Subject: Re: what is wrong with this sniplet?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41973@lists.php.net to get a copy of this message
I am not sure but I think may be it is because whatever the mail() write out in the body part will be recognised as text message, so even if we try to make it to write out the HTML syntax, it won't work. It could be real stupid to make such a notice but I can't think of anything else. Can you? Jack jacky@activelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself" ----- Original Message ----- From: Alvin Tan <alvintan@inscribe.com.my> To: Jacky <jacky@activelifestyle.com>; <php-general@lists.php.net> Sent: Wednesday, February 28, 2001 3:39 AM Subject: RE: [PHP] what is wrong with this sniplet? > Hi Jacky, > > The problem is a HTML one. Use "http://" followed by > the address in your <a > href> tag. > > Regards, > @lvin > > -----Original Message----- > From: Jacky [mailto:jacky@activelifestyle.com] > Sent: Thursday, March 01, 2001 5:40 AM > To: php-general@lists.php.net > Subject: [PHP] what is wrong with this sniplet? > > > people, > I tried to write out email using sniplet below, the email will write out the > hyper link so that reciever can click on the link to go to the page. What > happen is that the reciever recieve the actual link instead of the hyper > link I made, so I wonder what did I do wrong. I have mad sure that the email > software I used to test can read html format ( I use outlook express). > > $mailTo = "foo@foo.com"; > $mailSubject = "test"; > $mailBody = "Dear sir, \n\n"; > $mailBody = "Below is the link you can click on, \n\n"; > $mailBody .= "<html><body>Please Click <a > href=\"www.php.net\">Here</a></body></html> to view the request > details"; > $mailHeaders = "From: technical@activelifestyle.com\n"; > mail($mailTo, $mailSubject, $mailBody, $mailHeaders); > > Jack > jacky@activelifestyle.com > "There is nothing more rewarding than reaching the goal you set for > yourself" > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#41973) next »