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.

Can you add a submit by email button without a "default" to: address?

Avatar

Former Community Member

Can you add a submit by email button without a "default" to: address? I need the email window to launch without an addressee so the user can manually type in their addressee as needed. (A completed pdf will be attached to the email as well).

1 Reply

Avatar

Level 10

Hi,

use a regular button with this script in its click event.

event.target.mailDoc({

          bUI: true,

          cTo: '',

          cCc: '',

          cBcc: '',

          cSubject: 'My form',

          cMsg: 'Dear ...,\n\nhere is the final form data. \n\nKind regards\n...'

});