Highlighted

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

Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

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

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

25

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

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

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

26

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 19, 2020 0
Most Valuable Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 19, 2020 0
Most Valuable Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

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...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 19, 2020 0
Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 19, 2020 0
Most Valuable Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

That wouldn't be a mailto link, it would be a link to https, to run a web script CGI/ASP/PHP etc. that does the work. Such scripts MUST be the work of an experienced professional, up to date with the latest hacker attacks, sad to say.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 19, 2020 1
Participant ,
Nov 19, 2020

Copy link to clipboard

Copied

Ah no the webhandler part was clear,

 

I was continueing on the no HTML code in app.mailmsg train (or the mailto url link being an alternative to it.. sadly it isnt a feasible one)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 19, 2020 0