Sitecore EXM Programmatically sending email along with adding contact to list
This post will get the user details from the Form and add these user details as a Contact to XDB, and it will trigger the EXM automated email that I have created in Sitecore after this contact was added to the ListManger. Steps to be done before getting hands dirty. Create an empty contact list using ListManager Create an Automated Email Campaign message in EXM(Choose this to send an email campaign, for example, when a visitor triggers a goal or event on your website. Rule triggers Email Message on event ) Create Custom Facet that will hold all the user details received through the Form.Refer my post for Custom contact Facet Let's start adding contacts to the List and send an Email. public void AddContactToListAndSendEmail() { string emailAddress = "nels_jnjr4@yahoo.com" ; ...