Re: what is wrong with this sniplet?

From: Date: Wed, 28 Feb 2001 10:20:06 +0000
Subject: Re: what is wrong with this sniplet?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41983@lists.php.net to get a copy of this message
On Wednesday 28 February 2001 22:40, you wrote: > 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); Add a "Content-Type: text/html" to $mailHeaders (& add a http:// to the link) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, ignore?

« previous php.general (#41983) next »