Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Participant ,
Nov 19, 2020 Nov 19, 2020

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

TOPICS
Acrobat SDK and JavaScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 19, 2020 Nov 19, 2020

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

Translate
Community Expert ,
Nov 19, 2020 Nov 19, 2020

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 19, 2020 Nov 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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 19, 2020 Nov 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 19, 2020 Nov 19, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 19, 2020 Nov 19, 2020
LATEST

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)

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