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 Quote 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"; Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.