pioneerx01 Posted March 8, 2011 Share Posted March 8, 2011 I use this type of a code to send automatic emails from my website: $headers = ; $headers .= ; $to = ; Click here to go to Google. ", $headers); I am having hard time figuring out how to do hyperlink on words (like here). If I do something like this: <a href='http://www.google.com'>here</a> it spits out that exact thing out. Thanks you for your input Link to comment https://forums.phpfreaks.com/topic/229937-how-do-you-insert-hyparlink-into-this-code-email-code/ Share on other sites More sharing options...
HuggieBear Posted March 8, 2011 Share Posted March 8, 2011 You need to make sure that you specify a content-type of html in the header like this: $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; Link to comment https://forums.phpfreaks.com/topic/229937-how-do-you-insert-hyparlink-into-this-code-email-code/#findComment-1184417 Share on other sites More sharing options...
pioneerx01 Posted March 8, 2011 Author Share Posted March 8, 2011 Aha! Works great. Thanks Link to comment https://forums.phpfreaks.com/topic/229937-how-do-you-insert-hyparlink-into-this-code-email-code/#findComment-1184598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.