C# 클래스 Aspectacular.EmailHelper

파일 보기 프로젝트 열기: vgribok/Aspectacular

공개 프로퍼티들

프로퍼티 타입 설명
SmtpClientFactory Func

공개 메소드들

메소드 설명
IsValid ( this email ) : bool

Same as EmailAddress, but handles null gracefully. Returns false if email is null.

IsValidEmailFormat ( this emailAddress ) : bool

Returns true if text matches email address regular expression pattern.

SendSmtpEmail ( bool isBodyHtml, NonEmptyString optioanlFromAddress, NonEmptyString optionalReplyToAddress, string subject, string body ) : void

Sends SMTP email using .config file settings.

메소드 상세

IsValid() 공개 정적인 메소드

Same as EmailAddress, but handles null gracefully. Returns false if email is null.
public static IsValid ( this email ) : bool
email this
리턴 bool

IsValidEmailFormat() 공개 정적인 메소드

Returns true if text matches email address regular expression pattern.
public static IsValidEmailFormat ( this emailAddress ) : bool
emailAddress this
리턴 bool

SendSmtpEmail() 공개 정적인 메소드

Sends SMTP email using .config file settings.
public static SendSmtpEmail ( bool isBodyHtml, NonEmptyString optioanlFromAddress, NonEmptyString optionalReplyToAddress, string subject, string body ) : void
isBodyHtml bool
optioanlFromAddress NonEmptyString If null, .config from address value is used.
optionalReplyToAddress NonEmptyString If null, reply-to address is the same as from address.
subject string
body string
리턴 void

프로퍼티 상세

SmtpClientFactory 공개적으로 정적으로 프로퍼티

Optional SMTP client factory that can add non-configuration credentials, etc.
public static Func SmtpClientFactory
리턴 Func