MailAPI (Übung MWInformatik 2)
MailBibliothek.MailBuilder Klassenreferenz

Provides methods for IMail object creation. You should use other Setters and Create() method to create message that you'll send using Smtp client. Mehr ...

Öffentliche Methoden

 MailBuilder ()
 Creates new MailBuilder object. Mehr ...
 
void AddFrom (MailBox mailbox)
 Sets the author(s) of this email message ('From' header). If it's empty, email message is NOT RFC 2822 compliant. You can use MailBox to represent single mailbox. Mehr ...
 
void AddTo (MailBox mailbox)
 Sets address(es) of the primary recipient(s) of this email message ('To' header). You can use MailBox to represent single mailbox. Mehr ...
 
void SetSubject (string subject)
 
void SetText (string text)
 Sets plain text version of the email. Please remember that setting Html will override plain text. Mehr ...
 
IMail Create ()
 Creates new IMail using builder configuration. Mehr ...
 

Ausführliche Beschreibung

Provides methods for IMail object creation. You should use other Setters and Create() method to create message that you'll send using Smtp client.

Beschreibung der Konstruktoren und Destruktoren

MailBibliothek.MailBuilder.MailBuilder ( )

Creates new MailBuilder object.

Dokumentation der Elementfunktionen

void MailBibliothek.MailBuilder.AddFrom ( MailBox  mailbox)

Sets the author(s) of this email message ('From' header). If it's empty, email message is NOT RFC 2822 compliant. You can use MailBox to represent single mailbox.

Parameter
mailboxauthor(s) of this email message
void MailBibliothek.MailBuilder.AddTo ( MailBox  mailbox)

Sets address(es) of the primary recipient(s) of this email message ('To' header). You can use MailBox to represent single mailbox.

Parameter
mailboxSets address(es) of the primary recipient(s)
IMail MailBibliothek.MailBuilder.Create ( )

Creates new IMail using builder configuration.

Rückgabe
new IMail
void MailBibliothek.MailBuilder.SetSubject ( string  subject)
void MailBibliothek.MailBuilder.SetText ( string  text)

Sets plain text version of the email. Please remember that setting Html will override plain text.

Parameter
textplain email text