Highlighted

Send document per mail using mail address from signature

Community Beginner ,
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é

 

Correct answer by André5C2A | Community Beginner

Thanks, that worked!

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

TOPICS
PDF forms, Security digital signatures and esignatures

Views

33

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

Send document per mail using mail address from signature

Community Beginner ,
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&colon;

 

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é

 

Correct answer by André5C2A | Community Beginner

Thanks, that worked!

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

TOPICS
PDF forms, Security digital signatures and esignatures

Views

34

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 17, 2020 0
Most Valuable Participant ,
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]

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 17, 2020 1
Community Beginner ,
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?

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 17, 2020 0
Most Valuable Participant ,
Nov 17, 2020

Copy link to clipboard

Copied

Use:

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

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

Copy link to clipboard

Copied

Thanks! 🙂

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 17, 2020 0