Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( SmtpConfig config , int timeout = 25 ) |
public | open ( ) |
public | isOpen ( ) |
public | getTimeout ( ) |
public SmtpResponse | sendMessage ( string message , bool getResponse = true , string eol = "\r\n" ) |
public | close ( ) |
public | enableCrypto ( ) |
public static | formatMessage ( string dataMsg ) |
Methods in detail
-
__construct
-
open
public open ( )throws
-
isOpen
public isOpen ( )throws
-
getTimeout
public getTimeout ( ) -
sendMessage
sends a message to the smtp server -
close
public close ( ) -
enableCrypto
public enableCrypto ( )throws
-
formatMessage
public static formatMessage ( string dataMsg )param
string dataMsg
param