I know this is simple but my brain is fried from trying to solve a different problem!
I’m using php’s mail function to email the user. Below is my code. See the a href link, how do I get this to display as an actual link within the php?
$email=someone@example.com;
$content= "Dear Whoever,
NB: Please click <a href=\"document.pdf\" target=\"_blank\">here</a> to read and download the terms and conditions.";
mail( "$email", "Welcome", $content, "From: support@example.com");
As noted above, your code has error. It should be:
You would need to set the mime type to HTML in the header, and use it as a parameter in the mail() function.
From the manual
Though I usually use SwiftMailer and it has other neat features.