Class SendEmailActivity
Activity that sends an email from a workflow instance.
Inheritance
System.Object
SendEmailActivity
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0
Syntax
public class SendEmailActivity : Activity
Constructors
SendEmailActivity()
Declaration
public SendEmailActivity()
Fields
BccProperty
Declaration
public static DependencyProperty BccProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
BodyProperty
Declaration
public static DependencyProperty BodyProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
CCProperty
Declaration
public static DependencyProperty CCProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
FailedSentEmailEvent
Declaration
public static DependencyProperty FailedSentEmailEvent
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
FromProperty
Declaration
public static DependencyProperty FromProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
HtmlBodyProperty
Declaration
public static DependencyProperty HtmlBodyProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
PortProperty
Declaration
public static DependencyProperty PortProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
ReplyToProperty
Declaration
public static DependencyProperty ReplyToProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
SendingEmailEvent
Declaration
public static DependencyProperty SendingEmailEvent
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
SentEmailEvent
Declaration
public static DependencyProperty SentEmailEvent
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
SmtpHostProperty
Declaration
public static DependencyProperty SmtpHostProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
SubjectProperty
Declaration
public static DependencyProperty SubjectProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
ToProperty
Declaration
public static DependencyProperty ToProperty
Field Value
Type |
Description |
System.Workflow.ComponentModel.DependencyProperty |
|
Properties
Bcc
The Bcc property is used to set the Bcc recipients for the email message.
Declaration
public string Bcc { get; set; }
Property Value
Type |
Description |
System.String |
|
Body
The Body property is used to specify the Body of the email message.
Declaration
public string Body { get; set; }
Property Value
Type |
Description |
System.String |
|
CC
The CC property is used to set the CC recipients for the email message.
Declaration
public string CC { get; set; }
Property Value
Type |
Description |
System.String |
|
From
The From property is used to specify the From (Sender's) address for the email mesage.
Declaration
public string From { get; set; }
Property Value
Type |
Description |
System.String |
|
HtmlBody
The HTMLBody property is used to specify whether the Body is formatted as HTML (True) or not (False)
Declaration
public bool HtmlBody { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Port
Specify the Port used for SMTP. The default is 25.
Declaration
public int Port { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
ReplyTo
The email address that should be used for reply messages.
Declaration
public string ReplyTo { get; set; }
Property Value
Type |
Description |
System.String |
|
SmtpHost
The SMTP host is the machine running SMTP that will send the email. The default is 'localhost'
Declaration
public string SmtpHost { get; set; }
Property Value
Type |
Description |
System.String |
|
Subject
The Subject property is used to specify the subject of the Email message."
Declaration
public string Subject { get; set; }
Property Value
Type |
Description |
System.String |
|
To
The To property is used to specify the receipient's email address.
Declaration
public string To { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Execute(ActivityExecutionContext)
Declaration
protected override ActivityExecutionStatus Execute(ActivityExecutionContext context)
Parameters
Type |
Name |
Description |
System.Workflow.ComponentModel.ActivityExecutionContext |
context |
|
Returns
Type |
Description |
System.Workflow.ComponentModel.ActivityExecutionStatus |
|
Events
FailedSentEmail
The FailedSentEmail event is raised after an email is not sent.
Declaration
public event EventHandler FailedSentEmail
Event Type
Type |
Description |
System.EventHandler |
|
SendingEmail
The SendingEmail event is raised before an email is sent through SMTP.
Declaration
public event EventHandler SendingEmail
Event Type
Type |
Description |
System.EventHandler |
|
SentEmail
The SentEmail event is raised after an email is sent through SMTP.
Declaration
public event EventHandler SentEmail
Event Type
Type |
Description |
System.EventHandler |
|