I am trying to send an email to a contact when they register or update their profile. The Outbound Email CD API provides the following example for sending an email on a contact update:
Contact contact = new Contact(); contact.ExtendedDetails["Identification_key"].Value = "firstname.lastname@example.org"; contact.ExtendedDetails["Identification_source"].Value = "Global"; contact.EmailAddress = "email@example.com"; contact.ExtendedDetails["NAME"].Value = "John"; contact.ExtendedDetails["SURNAME"].Value = "Mason"; contact.Save("tcm:42-4711-64");
A notification page ID is passed to the Save method, which is somehow supposed to trigger the mailing.
I am a bit confused as to what actually is supposed to happen. What type of item are you passing to the Save method?
How will this trigger a mailing?
Even though this is the CD API, does this email get sent from the CM?