Wraps the creation of an outgoing email item as a FunnelEvent so a marketing funnel can react to an email being sent. Fired by BatchEmailService once an email item's content has been generated and saved, then passed to onFunnelEvent so an EmailSendGoal, the only goal type this event can trigger, can match against it and advance a lead through the funnel.
Group: Journeys
Implements: FunnelEvent
Properties
| Property | Returns | Description |
|---|---|---|
| emailItem | EmailItem | The email item that was created and sent. |
| leadProfile | Profile | The profile the email item was sent to. |
| relatedLead | Lead | Not used by this event; an email send event has no directly related lead. |
| trigger | BaseEmailJob | The email job that queued the email item this event reports. |
| triggeredGoal | Class<? extends Goal> | The only goal type this event can trigger, used to limit which funnels are scanned to those using EmailSendGoal. |
Methods
getTriggeredGoal()
Returns: Class<? extends Goal>
The only goal type this event can trigger, used to limit which funnels are scanned to those using EmailSendGoal.
getTrigger()
Returns: BaseEmailJob
The email job that queued the email item this event reports.
getLeadProfile()
Returns: Profile
The profile the email item was sent to.
getEmailItem()
Returns: EmailItem
The email item that was created and sent.
getRelatedLead()
Returns: Lead
Not used by this event; an email send event has no directly related lead.