![]() |
lefty 6/9/2019 |
I'm trying to email a message that has a mailto in the message so the recipient can click on it to reply to an email. However the double quotes within the message stops it working. $msg."<a href="mailto:daisy@somewhere.com?subject=Mail">EmailReply</a>"; I've tried to add the double quotes in decimal which allows the syntax checker to check it OK but it still doesn't work $msg."<a href="mailto:daisy@somewhere.com?subject=Mail">EmailReply</a>"; I've also tried other escape characters such as \ but I can't get it working. I would appreciate any help.
|
![]() |
Admin 6/10/2019 |
You can use the combination of single and double quotes or escape quotes with \ character. Either one will work. $msg."<a href='mailto:daisy@somewhere.com?subject=Mail'>EmailReply</a>";
$msg."<a href=\"mailto:daisy@somewhere.com?subject=Mail\">EmailReply</a>"; |
P
|
PaulM author 6/11/2019 |
You can use the combination of single and double quotes or escape quotes with \ character. Either one will work. $msg."<a href='mailto:daisy@somewhere.com?subject=Mail'>EmailReply</a>";
$msg."<a href=\"mailto:daisy@somewhere.com?subject=Mail\">EmailReply</a>";
|