C# Класс Rock.Communication.Email

Email class
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

NotifyAdmins() публичный статический Метод

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].
Результат void

ProcessBounce() публичный статический Метод

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.
Результат void

Send() публичный статический Метод

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].
Результат void

Send() публичный статический Метод

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].
Результат void

Send() публичный статический Метод

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].
Результат void