Skip to main content
Inspiring
November 19, 2020
Answered

HTML formatting in pdf generated mail ( app.mailmsg ?)

  • November 19, 2020
  • 5 replies
  • 1009 views

Hey everyone,

 

I'm hoping to use <table> formatting in a message (as a workaround for not being able to extract and mail a single page in acrobat reader) 

 

As an example heres how I populate one of the tables in js;

    var waarschuwadressen = "<table cellpadding='0' cellspacing='0' border='\'><tr><th>#</th><th>Naam</th><th>Telefoonnummer</th><th>Mobiele nummer</th><th>Pascode</th><th>Pincode</th></tr>"
    var y = 0
    for (var i=0; i<waarschuwadressen_.length; i++) {
        //pak de datavelden
        var y =+ 1
        var naam = this.getField("C_Naam_"+waarschuwadressen_[i]).value;
        var tel = this.getField("C_Telefoonnummer_"+waarschuwadressen_[i]).value;
        var mob = this.getField("C_Mobiel_"+waarschuwadressen_[i]).value;
        var pascode = this.getField("C_Pascode_"+waarschuwadressen_[i]).value;
        var pincode = this.getField("C_Pincode_"+waarschuwadressen_[i]).value;
        waarschuwadressen = waarschuwadressen +"<tr>"+"<td>"+y+"</td>"+"<td>"+naam+"</td>"+"<td>"+tel+"</td>"+"<td>"+mob+"</td>"+"<td>"+pascode+"</td>"+"<td>"+pincode+"</td>"+"</tr>"
    }
    waarschuwadressen.push("</table>")

 

unfortunately I just discovered that .mailmsg does not support html. Is there a workaround for this? Is there a way to send a message from pdf with html format?

 

Thank you in advance for any trouble to be taken

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer try67

No workaround possible. You can only send plain-text messages.

5 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 19, 2020

No workaround possible. You can only send plain-text messages.

try67
Community Expert
Community Expert
November 19, 2020

I guess one possible workaround would be to submit the data to a service running on a web-server, and generate an email with HTML contents from there...

Inspiring
November 19, 2020

I was milling over using a mailto link.. but thatd be one big link and a hassle.

 

Its a shame, it seems odd to me that html layout isnt a possibility