MailAPI (Übung MWInformatik 2)
MailBibliothek.Client.Smtp Klassenreferenz

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 ...
 

Ausführliche Beschreibung

SMTP client implementation. It allows sending emails using SMTP server.

Beschreibung der Konstruktoren und Destruktoren

MailBibliothek.Client.Smtp.Smtp ( )

Initializes new instance of the Smtp class.

Dokumentation der Elementfunktionen

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.

Parameter
hosthost
void MailBibliothek.Client.Smtp.Connect ( string  host,
int  port,
bool  useSSL 
)

Connects to SMTP server.

Parameter
hosthost
portport
useSSLtrue if using SSL encryption
void MailBibliothek.Client.Smtp.SendMessage ( MailBibliothek.IMail  imail)

Sends single message.

Parameter
imailmessage 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.

Parameter
useruser
passwordpassword