Sending a Triggered Email with Code
1 min read
Triggered Emails allows you to create a template for emails that you can send to your Contacts or Members, using code. Before sending the email, your code can inject information into the template to personalize it with any data that is available in your page code.
The general flow is to paste the generated snippet into your code where you want the email to be sent. Then edit the snippet so that it uses the ID of the currently logged-in member or the newly created contact, and the values you want to insert for the variable placeholders.
- Click here to learn How to Send a Triggered Email to Members with Code
- Click here to learn How to Send a Triggered Email to Contacts with Code
- For a more general-purpose article on sending an email using a 3rd party email service, see How to Send an Email on Form Submission.