C# Class Rock.Communication.Email

Email class
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
NotifyAdmins ( string subject, string message, string appRoot = "", string themeRoot = "", bool createCommunicationHistory = true ) : void

Notifies the admins.

ProcessBounce ( string email, BounceType bounceType, string message, System.DateTime bouncedDateTime ) : void

Processes the bounce.

Send ( System.Guid emailTemplateGuid, List recipients, string appRoot = "", string themeRoot = "", bool createCommunicationHistory = true ) : void

Sends the specified email template unique identifier.

Send ( string fromEmail, string subject, List recipients, string message, string appRoot = "", string themeRoot = "", List attachments = null, bool createCommunicationHistory = true ) : void

Sends the specified from email.

Send ( string fromEmail, string fromName, string subject, List recipients, string message, string appRoot = "", string themeRoot = "", List attachments = null, bool createCommunicationHistory = true ) : void

Sends the specified from email.

Method Details

NotifyAdmins() public static method

Notifies the admins.
Error sending System Email: Could not read Email Medium Entity Type
public static NotifyAdmins ( string subject, string message, string appRoot = "", string themeRoot = "", bool createCommunicationHistory = true ) : void
subject string The subject.
message string The message.
appRoot string The application root.
themeRoot string The theme root.
createCommunicationHistory bool if set to true [create communication history].
return void

ProcessBounce() public static method

Processes the bounce.
public static ProcessBounce ( string email, BounceType bounceType, string message, System.DateTime bouncedDateTime ) : void
email string The email.
bounceType BounceType Type of the bounce.
message string The message.
bouncedDateTime System.DateTime The bounced date time.
return void

Send() public static method

Sends the specified email template unique identifier.
/// Error sending System Email: Could not read Email Medium Entity Type ///
public static Send ( System.Guid emailTemplateGuid, List recipients, string appRoot = "", string themeRoot = "", bool createCommunicationHistory = true ) : void
emailTemplateGuid System.Guid The email template unique identifier.
recipients List The recipients.
appRoot string The application root.
themeRoot string The theme root.
createCommunicationHistory bool if set to true [create communication history].
return void

Send() public static method

Sends the specified from email.
public static Send ( string fromEmail, string subject, List recipients, string message, string appRoot = "", string themeRoot = "", List attachments = null, bool createCommunicationHistory = true ) : void
fromEmail string From email.
subject string The subject.
recipients List The recipients.
message string The message.
appRoot string The application root.
themeRoot string The theme root.
attachments List The attachments.
createCommunicationHistory bool if set to true [create communication history].
return void

Send() public static method

Sends the specified from email.
Error sending System Email: Could not read Email Medium Entity Type
public static Send ( string fromEmail, string fromName, string subject, List recipients, string message, string appRoot = "", string themeRoot = "", List attachments = null, bool createCommunicationHistory = true ) : void
fromEmail string From email.
fromName string From name.
subject string The subject.
recipients List The recipients.
message string The message.
appRoot string The application root.
themeRoot string The theme root.
attachments List The attachments.
createCommunicationHistory bool if set to true [create communication history].
return void