Use an
Email Resource to send emails using a configured Email Account.
You can create a new Email Resource by selecting File > New >
Email Resource. This will open the Email Resource editor where the Email Account to use can be configured along with other email-specific properties including:
- From address senders email address.
- To address recipients email address.
- Subject description of the email's contents.
- Message the main content. You can specify that your email message will contain HTML by enabling the HTML Message option.
Like all Resources, Resource Fields can be configured, mapped to a
Form's
Fields and && substituted in the Email Resource's properties.
An Email Resource can be added to a Form by dragging it from the Entities tree into the Form's
Resource View. Once added, the Verj.io JavaScript API's resources
interface can be used to send an email, for example:
resources.myEmailResource.sendmail()
If Success of this Email is critical has been selected, then sendmail()
will throw an error if an email fails to send.
You can attach files to an email by passing an array of file paths to the sendmail()
function.
![]()
![]()
![]()
![]()
![]()
![]()