My app needs to send a generated email when a user asks it. The email is sent with no problem (I am using Mail plugin, in Grails)but, inside there is a line with a link that is the purpose of the whole mail. But, it is not seen inside the email. The code is something like this:
'<head>'+
'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>'+
'</head>'+
'<body>'+
'<table width="690px" height="390px;" border="0px;font-family:verdana">'+
'<tr>'+
'<td>'+
'<p style="font-size: 14px;line-height: 1.5;margin-bottom: 10px;margin-left: 25px;text-align: left;">Blahblahblah this is the URL:</p>'+
'</td>'+
'</tr>'+
'<tr>'+
'<td>'+
'<p style="font-size: 14px;line-height: 1.5;margin-bottom: 10px;margin-left: 25px;text-align: left;"><a href="http://www.myurl.com/promocion/verPromocion?promocion='+promocion.nombre+'&recomendador='+compradorInstance.id+'"> </a> </p>'+
'</td>'+
'</tr>'+
</table>
'</body>'
I can see the <“p”> is drawn because there is an empty space where the link should be, but the link is not shown. Anybody knows why? Thank you.
Solved… Simply copy-pasted the url between the and . This way:
And now it is shown properly.