29#include <sptk5/Logger.h>
30#include <sptk5/Strings.h>
31#include <sptk5/net/BaseMailConnect.h>
32#include <sptk5/net/TCPSocket.h>
68 int command(
const String& cmd,
bool encodeCommand =
false,
bool decodeResponse =
false);
Base mail socket.
Definition: BaseMailConnect.h:47
A log that sends all the log messages into another log.
Definition: Logger.h:53
SMTP socket.
Definition: SmtpConnect.h:52
int getResponse(bool decode=false)
Retrieves the server response after the command into internal Strings buffer.
void cmd_send()
Sends the message.
static String mime(const Buffer &buffer)
Mime-encodes the buffer.
SmtpConnect(Logger *log=nullptr)
Default constructor.
void sendCommand(String cmd, bool encode=false)
Sends command using SMTP protocol.
void cmd_auth(const String &user, const String &password)
Logs in to the server host()
Strings & response()
The response from the server - makes sence after calling any command.
Definition: SmtpConnect.h:73
static String unmime(const String &s)
Mime-decodes the string.
void sendMessage() override
Sends the message.
int command(const String &cmd, bool encodeCommand=false, bool decodeResponse=false)
static String mime(const String &s)
Mime-encodes the string.
Definition: TCPSocket.h:165