C# Класс Engage.Dnn.Booking.EmailScheduler

A scheduler client for running scheduled email tasks.
Наследование: DotNetNuke.Services.Scheduling.SchedulerClient
Показать файл Открыть проект

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

Метод Описание
DoWork ( ) : void

Sends all queued emails

EmailScheduler ( DotNetNuke.Services.Scheduling.ScheduleHistoryItem objScheduleHistoryItem ) : System

Initializes a new instance of the EmailScheduler class.

SendMail ( string from, string to, string cc, string bcc, string replyTo, DotNetNuke priority, string subject, MailFormat bodyFormat, Encoding bodyEncoding, string body, string attachments, string smtpServer, string smtpAuthentication, string smtpUserName, string smtpPassword, bool smtpEnableSsl ) : string

Sends an email message.

This is a modified version of the DNN Core's Mail.SendMail(string,string,string,string,DotNetNuke.Services.Mail.MailPriority,string,DotNetNuke.Services.Mail.MailFormat,System.Text.Encoding,string,string[],string,string,string,string,bool) method. It does not provide a

Приватные методы

Метод Описание
GetValueOrHostSetting ( string settingValue, string settingName ) : string

Gets the value or host setting for the SMTP server configuration.

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

DoWork() публичный Метод

Sends all queued emails
public DoWork ( ) : void
Результат void

EmailScheduler() публичный Метод

Initializes a new instance of the EmailScheduler class.
public EmailScheduler ( DotNetNuke.Services.Scheduling.ScheduleHistoryItem objScheduleHistoryItem ) : System
objScheduleHistoryItem DotNetNuke.Services.Scheduling.ScheduleHistoryItem The obj schedule history item.
Результат System

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

Sends an email message.
This is a modified version of the DNN Core's Mail.SendMail(string,string,string,string,DotNetNuke.Services.Mail.MailPriority,string,DotNetNuke.Services.Mail.MailFormat,System.Text.Encoding,string,string[],string,string,string,string,bool) method. It does not provide a
public static SendMail ( string from, string to, string cc, string bcc, string replyTo, DotNetNuke priority, string subject, MailFormat bodyFormat, Encoding bodyEncoding, string body, string attachments, string smtpServer, string smtpAuthentication, string smtpUserName, string smtpPassword, bool smtpEnableSsl ) : string
from string The email address from which the email is being sent.
to string The email address(es) to which the email is being sent.
cc string The email address(es) on the carbon copy line.
bcc string The email address(es) on the blind carbon copy line.
replyTo string The email address to which replies should be directed, if not .
priority DotNetNuke The priority of the email message.
subject string The subject of the email message.
bodyFormat MailFormat The format of .
bodyEncoding System.Text.Encoding The encoding of .
body string The body of the email message.
attachments string A list of the text to include with this email message as an attachment named "Appointment.ics".
smtpServer string The SMTP server to use to send the email, if not the server defined in the Host Settings of the website.
smtpAuthentication string The SMTP authentication type to use to send the email, if not the type defined in the Host Settings of the website.
smtpUserName string The SMTP username to use to send the email, if not the username defined in the Host Settings of the website.
smtpPassword string The SMTP password to use to send the email, if not the password defined in the Host Settings of the website.
smtpEnableSsl bool if set to true sends the message to the SMTP server over SSL.
Результат string