Description
The function OpenMail opens a mail window (using the default mail client) and pre-fills the email with the specified recipient, subject, and content values.
Syntax
OpenMail(to, cc, bcc, subject, suppressMessage)
Arguments
| Argument | Description |
|---|---|
to |
The email address of the primary recipient. |
cc |
Optional CC recipients (separated by commas). |
bcc |
Optional BCC recipients (separated by commas). |
subject |
The subject of the email. Can be dynamically filled. |
suppressMessage |
Suppresses the display of a confirmation message when clicking the button. 1 = suppress, 0 = show. |
Return Type
The function does not return a value but directly opens a mail window.
Examples
| Description | Formula |
|---|---|
| Simple email |
OpenMail( "colleague@example.com", "", "", "Project update required", 0 ) |
| Email with CC and BCC |
OpenMail( "primary@example.com", "cc1@example.com,cc2@example.com", "bcc1@example.com", "Report: Project Status", 1 ) |
| Dynamic email |
OpenMail(
flavor("Mail Distribution List"),
"",
"",
"Information about " + projectTitle,
0
)
|
Notes
- The function can only be used within an interactive context, such as in a button.
- Ensure that the email addresses are correct to avoid delivery errors.
- Use dynamic content like
flavor("Field Name")to customize the email.
Comments
0 comments
Please sign in to leave a comment.