Generates a mailto: link and programmatically clicks it to open an email client
mailto:
The email options
The email subject
The email text
Will throw an error if the URL-encoded mailto link exceeds 2000 characters
const recipients = ["user1@example.com", "user2@example.com"],const subject = "Hello",const text = `Hello,This is a test email.`const mailtoLink = getMailtoLink({recipients, subject, text}); Copy
const recipients = ["user1@example.com", "user2@example.com"],const subject = "Hello",const text = `Hello,This is a test email.`const mailtoLink = getMailtoLink({recipients, subject, text});
Generates a
mailto:link and programmatically clicks it to open an email client