29#include <sptk5/Buffer.h>
30#include <sptk5/net/MailMessageBody.h>
164 return m_body.text();
174 m_body.text(body, smtp);
184 return m_attachments;
194 m_attachments = attachments;
204 return m_messageBuffer;
Base mail socket.
Definition: BaseMailConnect.h:47
void to(const String &addr)
Definition: BaseMailConnect.h:94
String bcc() const noexcept
Definition: BaseMailConnect.h:125
virtual ~BaseMailConnect()=default
BaseMailConnect()=default
String from() const noexcept
Definition: BaseMailConnect.h:63
virtual void sendMessage()=0
void bcc(const String &addr)
Definition: BaseMailConnect.h:135
String cc() const noexcept
Definition: BaseMailConnect.h:104
void cc(const String &addr)
Definition: BaseMailConnect.h:115
void subject(const String &subj)
Definition: BaseMailConnect.h:153
String to() const noexcept
Definition: BaseMailConnect.h:83
void attachments(const String &attachments)
Definition: BaseMailConnect.h:192
void body(const String &body, bool smtp)
Sets the current plain text part of e-mail message.
Definition: BaseMailConnect.h:172
static void mimeFile(const String &fileName, const String &fileAlias, std::stringstream &message)
void from(const String &addr)
Definition: BaseMailConnect.h:74
String attachments() const noexcept
Definition: BaseMailConnect.h:182
String subject() const noexcept
Definition: BaseMailConnect.h:144
String body() const noexcept
Definition: BaseMailConnect.h:162
void mimeMessage(Buffer &buffer)
const Buffer & messageBuffer() const noexcept
Definition: BaseMailConnect.h:202
Definition: MailMessageBody.h:54