SmtpClient.h File Reference
#include "TcpClient.h"
#include "MailMessage.h"
#include "Url.h"
#include <BitManipulations.h>
#include <WString.h>
#include <WVector.h>
#include <Data/Stream/DataSourceStream.h>
#include <WConstants.h>
#include <Data/ObjectQueue.h>
Include dependency graph for SmtpClient.h:

Go to the source code of this file.

Classes

class  SmtpClient
 

Macros

#define SMTP_QUEUE_SIZE   5
 
#define SMTP_ERROR_LENGTH   40
 
#define SMTP_CODE_SERVICE_READY   220
 
#define SMTP_CODE_BYE   221
 
#define SMTP_CODE_AUTH_OK   235
 
#define SMTP_CODE_REQUEST_OK   250
 
#define SMTP_CODE_AUTH_CHALLENGE   334
 
#define SMTP_CODE_START_DATA   354
 
#define SMTP_OPT_PIPELINE   bit(0)
 
#define SMTP_OPT_STARTTLS   bit(1)
 
#define SMTP_OPT_AUTH_PLAIN   bit(2)
 
#define SMTP_OPT_AUTH_LOGIN   bit(3)
 
#define SMTP_OPT_AUTH_CRAM_MD5   bit(4)
 

Typedefs

using SmtpClientCallback = Delegate< int(SmtpClient &client, int code, char *status)>
 

Enumerations

enum  SmtpState {
  eSMTP_Banner = 0 , eSMTP_Hello , eSMTP_StartTLS , eSMTP_SendAuth ,
  eSMTP_SendingAuthLogin , eSMTP_RequestingAuthChallenge , eSMTP_SendAuthResponse , eSMTP_SendingAuth ,
  eSMTP_Ready , eSMTP_SendMail , eSMTP_SendingMail , eSMTP_SendRcpt ,
  eSMTP_SendingRcpt , eSMTP_SendData , eSMTP_SendingData , eSMTP_SendHeader ,
  eSMTP_SendingHeaders , eSMTP_StartBody , eSMTP_SendingBody , eSMTP_Sent ,
  eSMTP_Quitting , eSMTP_Disconnect
}