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

Send document per mail using mail address from signature

Community Beginner ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

Dear all,

 

maybe you can help me with this topic. I have a pdf where one person has to fillout field and sign it, than send it to a second person. The second person checks it and sign it too.

 

Now I would like to generate an automatic mail that attach the document and send it to the first person back using the mail address inside the first signature. How do I do that? Is there any possibility?

 

Currently I am using this javascript:

 

for (var i = 0; i < this.numFields; i++)
{
this.getField(getNthFieldName(i)).readonly=true;
}

var c_name = this.getField('name').value;
var betreff = c_name;

var body = 'Body text bla bla bla';
this.mailDoc(false, "test@domain.de", "", "", betreff, body );

 

Thank you very much, I appreciate your help,

 

Stay safe and have a nice day,

 

André

 

TOPICS
PDF forms , Security digital signatures and esignatures

Views

545

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
community guidelines

correct answers 1 Correct answer

Community Beginner , Nov 17, 2020 Nov 17, 2020

Thanks, that worked!

If I would like to get the name out of the signature as well how should I have to change it?

Votes

Translate

Translate
Community Expert ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

You can retrieve the email address of the signer using this code:

 

this.getField("SignatureFieldName").signatureInfo().name.match(/<(.+)>$/)[1]

Votes

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
community guidelines
Community Beginner ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

Thanks, that worked!

If I would like to get the name out of the signature as well how should I have to change it?

Votes

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
community guidelines
Community Expert ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

Use:

signatureInfo().name.match(/^(.+)</)[1]

Votes

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
community guidelines
Community Beginner ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

LATEST

Thanks! 🙂

Votes

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
community guidelines