We want to send an email containing a HREF link but having problems with escape characters or whatever.
So in the body of the mail we have
$bodyPT2 = "<a href =".$fullUrl.">link </a>";
where fullURL is a user inputted URL but when we open the mail we get
<a href =http://something/boom249.php>link </a>
instead of just showing
"link"
Any Help ? : (
Problems sending HREF link in body of email
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
You would need to create a MIME encoded email to have HTML links. You could always just put the URL into the email. Most readers will turn into a link:
You might want to look at SwiftMailer to help you easily create HTML emails. It is not that easy to create compatible MIME emails from scratch.
Code: Select all
$bodyPT2 = $fullUrl;(#10850)