SmtpClient.h
Go to the documentation of this file.
Definition: SmtpClient.h:72
bool sendMailBody(MailMessage *mail)
Definition: SmtpClient.h:62
Definition: SmtpClient.h:74
Definition: SmtpClient.h:75
Definition: SmtpClient.h:83
Definition: SmtpClient.h:67
void setSslInitHandler(Ssl::Session::InitDelegate handler)
Set the SSL session initialisation callback.
Definition: TcpConnection.h:112
void onServerError(SmtpClientCallback callback)
Callback that will be called every an error occurs.
Definition: SmtpClient.h:163
SmtpClient(bool autoDestroy=false)
void onReadyToSendData(TcpConnectionEvent sourceEvent) override
Definition: SmtpClient.h:70
Definition: SmtpClient.h:71
Definition: SmtpClient.h:77
Ssl::Session * getSsl()
Get a pointer to the current SSL session object.
Definition: TcpConnection.h:135
Definition: SmtpClient.h:76
Definition: MailMessage.h:31
~SmtpClient()
Definition: SmtpClient.h:80
Definition: TcpClient.h:46
void setTimeOut(uint16_t waitTimeOut)
Definition: SmtpClient.h:64
void sendMailHeaders(MailMessage *mail)
Definition: SmtpClient.h:73
Definition: SmtpClient.h:66
Definition: SmtpClient.h:82
Definition: SmtpClient.h:68
Definition: SmtpClient.h:78
Definition: SmtpClient.h:90
Definition: SmtpClient.h:69
void onMessageSent(SmtpClientCallback callback)
Callback that will be called every time a message is sent successfully.
Definition: SmtpClient.h:154
Definition: SmtpClient.h:65
Delegate< int(SmtpClient &client, int code, char *status)> SmtpClientCallback
Definition: SmtpClient.h:86
bool send(const String &from, const String &to, const String &subject, const String &body)
Queues a single message before it is sent later to the SMTP server.
err_t onReceive(pbuf *buf) override
Definition: SmtpClient.h:63
Definition: SmtpClient.h:81
SmtpState getState()
Returns the current state of the SmtpClient.
Definition: SmtpClient.h:145
Definition: SmtpClient.h:79