I am hoping to send an email from a pdf that sends the link for where the pdf form is on the local drive rather than the physical copy of the pdf form.
I have figured out how to place the link of the location of the file into the body, but I can't figure out how to disable the file attachment part of the submit button.
Is there anyway to disable the attachment when you use the submit command? I have tried playing with EmailButton.resolveNode("$..#submit").format but can't change it to nothing. And if the submit button my submit something is there any other way to send an email without using the submit command?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
I figured it out after searching for mailDoc.
Using app.mailMsg does the trick
useful post: http://forums.adobe.com/message/2307841
Thanks!
Views
Replies
Total Likes
You can do it by scripting your own submit button.
So use a regular button and put the following on the click event of the button. The operators can point to field rawValues instead of hard coding the values (cTo, cCC, cSubject, cMsg).
var oDoc = event.target;
oDoc.mailDoc({
bUI: true,
cTo: "someone@example.com",
cCC: "someone.else@example.com",
cSubject: "This is my email subject",
cMsg: "This is my email message"
});
Views
Replies
Total Likes
I tried this example in a blank form on a regular button, and it attaches a pdf still.
Is there some other setting or something I need to do?
Views
Replies
Total Likes
I figured it out after searching for mailDoc.
Using app.mailMsg does the trick
useful post: http://forums.adobe.com/message/2307841
Thanks!
Views
Replies
Total Likes
Hmm...odd, pretty sure I used that code before for no attachment but didn't test before posting.
Glad you got it sorted.
Views
Replies
Total Likes