Open default email client with prefilled recipient, subject and text
The context for automation
Email type object with to (list of recipients), subject and text
Will throw an error if the URL-encoded mailto link exceeds 2000 characters
// First linebreak is ignoredconst text = `Hello,This is a test email.`;const email = { to: ['user1@example.com', 'user2@example.com'], subject: 'Hello', text: text,};await draftEmail(ctx, email); Copy
// First linebreak is ignoredconst text = `Hello,This is a test email.`;const email = { to: ['user1@example.com', 'user2@example.com'], subject: 'Hello', text: text,};await draftEmail(ctx, email);
Open default email client with prefilled recipient, subject and text