Expand my Community achievements bar.

EMail PDF

Avatar

Former Community Member

Hi

Please help the sloution for below requirement.

1. PDF deveoped using ADobe designer and reader extended.

2. User can able to download from web and  fill the data,save and print now.

3. Now i want to add one more features like EMail the PDF.

4. EMail - If user the clicks the button it should send the mail

      1.  to one or more mail Id which maild id list should embedded in the PDF

      2.  Mail will be automatically sent once click the send button

      3.  The PDF should have user eneterd data.

what are all the possible ways? ...

Advance Thanks

Regards,

Dhiyani

7 Replies

Avatar

Level 10

Did you try using the EmailSubmit button available in the list of controls.

Thanks

Srini

Avatar

Former Community Member

Hi  Srini ,

I want to have one button on my PDF and once user eneter the data and clicks that button it should send PDF with user enterd data one mail Id . and this mail id will be emebedded with PDF itself.

What are all the ways to achieve?

Regards,

Dhiyane

Avatar

Level 10

Place button on the form. Set it to Regular.

Copy and paste the below code in the click event.

Modify the below variable value assignments with the field names on your form.

If you donot need CC Email address, set it to null.

     strCCAddress = "';

Hope this helps.

var strToAddress, strCCAddress, strSubject, strMessage

strToAddress = txtToAddress.rawValue;
strCCAddress = txtCCAddress.rawValue;
strSubject = txtSubject.rawValue;
strMessage = txtMessage.rawValue;

event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});

Thanks

Srini

Avatar

Former Community Member

Hi Srini ,

event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});

In the above code if i remove the line cSubmitAs:"PDF",cCharset:"utf-8" and use the remaining code like below

event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage});

then its working only if client Mail box opens(Like Outlook or other mail box opens ).

I need the solution which should send the PDF after clicking the button without any manaul interrption.

Regards,

Dhiyane

Avatar

Former Community Member

Is any possible to bypass the Client mailbox  and send the PDF directly to Email Server.

If not then whats the best way to send the fillable PDF to Email id

Like using ( web service , servelet ).

Let me know the easiest and cheapest way to send the fillable PDF to the EMail Id .

Advance Thanks.

Regards,

Dhiyane

Avatar

Level 10

I do not think so. But may be some one has ideas on this..

As far as I know, you can not bypass the Email client for sending email from PDF directly.

You can do so from the LiveCycle Workbench but that happens on the server not on the client.

Thanks

Srini