CRM_Marketing_SendEmailAction

Action of sending an email from the bot or community to an email address

An action that sends an email with the specified subject and message body.

function CRM_Marketing_ParseWebhookRequest(request:  FetchRequest): CRM_Marketing_WebhookResult {
    return { 
        actions:  [ 
            { 
                type: CRM_Marketing_ActionType.SendEmail,  
                email: 'user@example.com', 
                subject:  'Subject', 
                body: 'Message text', 
            }, 
        ];  
    } 
} 

Hierarchy

  • CRM_Marketing_SendEmailAction

Properties

Readonly body

body: string

Email body.

Readonly email

email: string

E-mail address to which the message is sent.

Readonly subject

subject: string

Email subject.

Optional Readonly templateId

templateId: undefined | string

Template ID for sending an email.

Readonly type

type: SendEmail

Action type.