In N/email module did any one tried <a> tags...
# suitescript
k
In N/email module did any one tried <a> tags, here is my code when i add <a> tag new line was not executing and complete body is coming in 1 line.
Copy code
email.send({
           author: -5,
           recipients: recipientEmail,
           isInternalOnly: true,
           subject: 'New Customer Created',
           body: 'Hello,\n\n Here is a new Customer \n\n<a href='+custURL+'>Click Here to Access<\/a\n\n
});
m
Try
<br />
instead of
\n
πŸ‘ 1
e
You need a ” after the = and another ” before the > and you’re missing a > after the /a
k
@michoel @Eric B both solutions worked like champ πŸ‘
πŸ‘ 1
Copy code
body: 'Hello,<br/><br/>Here is a new Customer<br/><a href='+custURL+'>Click Here to Access</a><br/>
Because i'm passing resovleurl in custURL its expecting single quotes