AQMail - setHtmlText
this displays the text as ordinary text and doesnt have any difference with setText
I used Bold, Break, link etc but the values gets printed in the email instead of displaying as html tags
see pics
msg.setText("<a href = www.aquafold.com> html text </a>");
|
100 KB
|
116 KB
Your test script is incorrect, replace msg.setHtmlText() in your test script with lines below and try again:
var contents = "";
contents += "<a href='www.yahoo.com'>Yahoo link</a>";
contents += "<br>";
contents += "And, this is a <b>bold text</b>";
email.setHtmlText(contents);
In your test script, the closing tag for <b>, should be </b> but not <b/>.
works with the below code
var MQ= aqua.mail.newMailQueue()
var msg = aqua.mail.newMessage();
msg.addTo("tariqrahiman@aquafold.com");
msg.addCC("tariqrahiman@hotmail.com");
msg.addBCC("tariqrahiman@gmail.com");
msg.setFrom("tariqrahiman@aquafold.com");
msg.setSubject(" TEST - Report");
var contents = "";
contents += "<a href='www.yahoo.com'>Yahoo link</a>";
contents += "<br>";
contents += "And, this is a <b>bold text</b>";
msg.setHtmlText(contents);
msg.setText("Excel Report Message");
MQ.sendMail(msg);
works with the below code
var MQ= aqua.mail.newMailQueue()
var msg = aqua.mail.newMessage();
msg.addTo("tariqrahiman@aquafold.com");
msg.addCC("tariqrahiman@hotmail.com");
msg.addBCC("tariqrahiman@gmail.com");
msg.setFrom("tariqrahiman@aquafold.com");
msg.setSubject(" TEST - Report");
var contents = "";
contents += "<a href='www.yahoo.com'>Yahoo link</a>";
contents += "<br>";
contents += "And, this is a <b>bold text</b>";
msg.setHtmlText(contents);
msg.setText("Excel Report Message");
MQ.sendMail(msg);
Issue #4360 |
Closed |
Invalid |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
Your test script is incorrect, replace msg.setHtmlText() in your test script with lines below and try again:
var contents = "";
contents += "<a href='www.yahoo.com'>Yahoo link</a>";
contents += "<br>";
contents += "And, this is a <b>bold text</b>";
email.setHtmlText(contents);
In your test script, the closing tag for <b>, should be </b> but not <b/>.