C# 클래스 Rolcore.Net.Mail.EmailUtils

Utilities that simplify email related tasks.
파일 보기 프로젝트 열기: Rollins/Rolcore

공개 메소드들

메소드 설명
CreateMessage ( string to, string cc, string bcc, string from, string subject, string body, bool isBodyHtml ) : MailMessage

Creates and configures a MailMessage.

LenientIsEmailAddress ( string email ) : bool

Validates an email address according to lenient rules.

SendEmail ( MailMessage message, string smtpServer = null ) : void

Sends the given message via email using the given SMTP server.

StrictIsEmailAddress ( string email ) : bool

Validates an email address according to strict rules.

비공개 메소드들

메소드 설명
CreateLenientEmailAddressMatcher ( ) : Regex
CreateStrictEmailAddressMatcher ( ) : Regex

메소드 상세

CreateMessage() 공개 정적인 메소드

Creates and configures a MailMessage.
public static CreateMessage ( string to, string cc, string bcc, string from, string subject, string body, bool isBodyHtml ) : MailMessage
to string The value for
cc string
bcc string The value for
from string The value for
subject string The value for
body string The value for
isBodyHtml bool
리턴 System.Net.Mail.MailMessage

LenientIsEmailAddress() 공개 정적인 메소드

Validates an email address according to lenient rules.
public static LenientIsEmailAddress ( string email ) : bool
email string The email address to validate
리턴 bool

SendEmail() 공개 정적인 메소드

Sends the given message via email using the given SMTP server.
public static SendEmail ( MailMessage message, string smtpServer = null ) : void
message System.Net.Mail.MailMessage The message to send.
smtpServer string The SMTP server to send the message through.
리턴 void

StrictIsEmailAddress() 공개 정적인 메소드

Validates an email address according to strict rules.
public static StrictIsEmailAddress ( string email ) : bool
email string The email address to validate.
리턴 bool