Topic by Ashley Wilson
Content
I want to send a mailing when a new record is created in a custom object. There are no incidents or opportunities associated with these; it's a one-off communication. How would I trigger this from a custom process on create event of the custom object?
I tried calling
RNCPHP\Mailing::SendMailingToContact($contact, null, $mailingID, time());
but that doesn't seem to be working. The contact and the mailing have been created already. The second argument is supposed to be an incident or an opportunity. I can't find any other functions which trigger a mailing (as opposed to a custom email).
Ideas?