MailAPI (Übung MWInformatik 2)
|
SMTP client implementation. It allows sending emails using SMTP server. Mehr ...
Öffentliche Methoden | |
Smtp () | |
Initializes new instance of the Smtp class. Mehr ... | |
void | Connect (string host) |
Connects to SMTP server on port 587. Without SSL Connection. Mehr ... | |
void | Connect (string host, int port, bool useSSL) |
Connects to SMTP server. Mehr ... | |
void | UseBestLogin (string user, string password) |
Logs user in using best method available. When no AUTH capability is found, this method switches to SSL (StartTLS()()()()) and tries again. Mehr ... | |
void | SendMessage (MailBibliothek.IMail imail) |
Sends single message. Mehr ... | |
void | Close () |
Sends QUIT command. Disconnects and releases all resources acquired by this object. Mehr ... | |
SMTP client implementation. It allows sending emails using SMTP server.
MailBibliothek.Client.Smtp.Smtp | ( | ) |
Initializes new instance of the Smtp class.
void MailBibliothek.Client.Smtp.Close | ( | ) |
Sends QUIT command. Disconnects and releases all resources acquired by this object.
void MailBibliothek.Client.Smtp.Connect | ( | string | host | ) |
Connects to SMTP server on port 587. Without SSL Connection.
host | host |
void MailBibliothek.Client.Smtp.Connect | ( | string | host, |
int | port, | ||
bool | useSSL | ||
) |
Connects to SMTP server.
host | host |
port | port |
useSSL | true if using SSL encryption |
void MailBibliothek.Client.Smtp.SendMessage | ( | MailBibliothek.IMail | imail | ) |
Sends single message.
imail | message as IMail |
void MailBibliothek.Client.Smtp.UseBestLogin | ( | string | user, |
string | password | ||
) |
Logs user in using best method available. When no AUTH capability is found, this method switches to SSL (StartTLS()()()()) and tries again.
user | user |
password | password |