Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Email from a PDF

Avatar

Level 4

I've got the following code in my email button:

form1.#subform[0].Button1::click - (JavaScript, client)

var

vEmail = "";

var

vSubject = "Someone has requested training";

var

vBody = "Hi\n\nPlease find attached the completed training request form for your review."

event.target.submitForm({cURL

:"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody,cSubmitAs:"PDF",cCharset:"utf-8"});

It is working fine. The problem is, I have a few users that have Outlook & Lotus Notes installed. They use Outlook for the calendar & Lotus Notes for the default email. For some reason when these users click the email request button, it will try to use Outlook instead of Lotus Notes. Is there a way for me to edit this code so it will use Lotus Notes no matter what? I have Notes set as the default email & have edited the registry MAILTO: key in the registry to reflect these changes butit is still not working. Can i make this work by hard coding Lotus Notes executable into the email button?

0 Replies