MailMessage.h
Go to the documentation of this file.
97 MailMessage& addAttachment(IDataSourceStream* stream, MimeType mime, const String& filename = "");
106 MailMessage& addAttachment(IDataSourceStream* stream, const String& mime, const String& filename = "");
Definition: MailMessage.h:32
MailMessage & addAttachment(IDataSourceStream *stream, const String &mime, const String &filename="")
Adds attachment to the email.
MailMessage & addAttachment(IDataSourceStream *stream, MimeType mime, const String &filename="")
Adds attachment to the email.
MailMessage & setHeader(const String &name, const String &value)
Set a header value.
Definition: MailMessage.h:47
MailMessage & setBody(const String &body, MimeType mime=MIME_TEXT)
Sets the body of the email.
MailMessage & addAttachment(FileStream *stream)
Adds attachment to the email.
MailMessage & setBody(String &&body, MimeType mime=MIME_TEXT) noexcept
Sets the body of the email using move semantics.
MailMessage & setBody(IDataSourceStream *stream, MimeType mime=MIME_TEXT)
Sets the body of the email.
Definition: SmtpClient.h:91
IDataSourceStream * stream
The currently active stream being sent.
Definition: TcpClient.h:165