Expand my Community achievements bar.

Email pdf in body and as attachment

Avatar

Level 1

I'm currently using doc.mailDoc() to send a pdf via e-mail as an attachment, but need to know if it's possible to include the completed form in the body of the e-mail as well. This way the recipient is able to view the completed form in their Outlook Reading Pane instead of having to open the attachment.

Any help will be helpful.

1 Reply

Avatar

Level 10

The mailDoc() or mailMsg() methods using strings for the mail body.

To include the values of fields in the body you'll have to create a custom script.

You can try a macro I desiged for this purpose.

It allows you to create a message and place variables into that message that will be filled with data from fields.

http://4.bp.blogspot.com/-THPsjHSlpjo/T8UbTb5LX7I/AAAAAAAAAfU/KUu2jELkOEc/s320/Step_4.png

http://thelivecycle.blogspot.de/2012/05/mailto-maker-marco-v1.html