C# Class FormProcessor.NotificationHelper

ファイルを表示 Open project: BellevueCollege/FormsProcessor

Private Properties

Property Type Description
AddAddresses void
AddAddresses void
ApplySmtpAuthenticationSettings void
ExtractAddressesFromString string[]
HasTrustedPublicKey bool
SmtpSend_Completed void
ValidateCertificate bool

Public Methods

Method Description
SendEmail ( string to, string subject, string body, string cc = null, bool highPriority = false, bool async = false ) : bool

SendEmail ( string strTo, string strSubject, string strBody, string strFrom, bool blnHTML, string strCc = null, bool blnHighPriority = false, bool blnAsync = false ) : bool

Private Methods

Method Description
AddAddresses ( MailAddressCollection addressField, string addresses ) : void

AddAddresses ( string &msg, string addresses ) : void

ApplySmtpAuthenticationSettings ( SmtpClient smtp ) : void

ExtractAddressesFromString ( string str ) : string[]

HasTrustedPublicKey ( X509Certificate certificate ) : bool

SmtpSend_Completed ( object sender, AsyncCompletedEventArgs e ) : void

ValidateCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslpolicyerrors ) : bool

This code is based heavily on this MSDN Example: http://msdn.microsoft.com/en-us/library/dd633677%28v=EXCHG.80%29.aspx

Method Details

SendEmail() public static method

public static SendEmail ( string to, string subject, string body, string cc = null, bool highPriority = false, bool async = false ) : bool
to string
subject string
body string
cc string
highPriority bool
async bool
return bool

SendEmail() public static method

public static SendEmail ( string strTo, string strSubject, string strBody, string strFrom, bool blnHTML, string strCc = null, bool blnHighPriority = false, bool blnAsync = false ) : bool
strTo string
strSubject string
strBody string
strFrom string
blnHTML bool
strCc string
blnHighPriority bool
blnAsync bool
return bool