usadarts Posted February 27, 2007 Share Posted February 27, 2007 Having problem sending link within mail() $message='<a href="http://www.usadarts.com"><i>USADarts Website</i></a>'; mail("$blah; $blah", "NEW AFFILIATED MEMBER", " $message Regards, David ", "From: $sender"); The email is showing up as follows: <a href="http://www.usadarts.com"><i>USADarts Website</i></a> Regards, David Not sure what is wrong with the code. David Quote Link to comment Share on other sites More sharing options...
AV1611 Posted February 27, 2007 Share Posted February 27, 2007 you are sending a text only email. You have to include a header that will make the mail recipient's email client display it as html Quote Link to comment Share on other sites More sharing options...
simcoweb Posted February 27, 2007 Share Posted February 27, 2007 Try swapping your quotes around. Like this: <?php $message="<a href='http://www.usadarts.com'><i>USADarts Website</i></a>"; ?> Quote Link to comment Share on other sites More sharing options...
usadarts Posted February 27, 2007 Author Share Posted February 27, 2007 How is this setup? You have to include a header that will make the mail recipient's email client display it as html Does not work either <?php $message="<a href='http://www.usadarts.com'><i>USADarts Website</i></a>"; ?> Quote Link to comment Share on other sites More sharing options...
ashly Posted February 27, 2007 Share Posted February 27, 2007 Use like this: $headers = "MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\n"; mail($mailAddress, $mailSubject, $mailMessage, $headers); I hope this will work out.. Cheers Ashly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.