Re: what is wrong with this sniplet?

From: Date: Wed, 28 Feb 2001 11:32:50 +0000
Subject: Re: what is wrong with this sniplet?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41988@lists.php.net to get a copy of this message
You don't need to write <a href=.....> for outlook , if you put space before and after URL unless you want to send HTML mail. Outlook thinks it's a URL if you write correct URL and many other UMA treats URL or Email address as link. i.e. www.php.net is not correct URL, my outlook express thinks it is a URL though... http://www.php.net/ is correct URL and you should be able to click it to open it. If you want to send HTML mail, take a look at whole HTML formatted mail including headers in your mail box. You will get how to compose HTML formatted mail. Regards, -- Yasuo Ohgaki ----- Original Message ----- From: "Jacky" <jacky@activelifestyle.com> To: <php-general@lists.php.net> Sent: Thursday, March 01, 2001 6:40 AM 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"

« previous php.general (#41988) next »