SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SMTP.h File Reference
#include <selib.h>
#include "BufPrint.h"

Go to the source code of this file.

Data Structures

struct  SMTP
 This class is a minimal SMTP client that takes an email message body and passes it on to a SMTP server. More...
 

Macros

#define SMTP_getEcode(o)   (o)->eCode
 Documentation: SMTP::getEcode. More...
 
#define SMTP_setContentType(o, type)   (o)->contentType=type
 Documentation: SMTP::setContentType. More...
 
#define SMTP_bit8(o)   (o)->eightBit
 Returns true if server supports 8BITMIME. More...
 

Typedefs

typedef struct SMTP SMTP
 This class is a minimal SMTP client that takes an email message body and passes it on to a SMTP server. More...
 

Enumerations

enum  SMTP_ErrCode {
  SMTP_NoError =0 , SMTP_DataCommitted , SMTP_ErrHostName , SMTP_ErrSocketCreate ,
  SMTP_ErrConnect , SMTP_ErrHELO , SMTP_ErrMAILFROM , SMTP_ErrDATA ,
  SMTP_ErrRCPTTO , SMTP_ErrSocketClosed , SMTP_ErrSmtpResponseCode , SMTP_ErrWriteStarted ,
  SMTP_ErrNoAuthSup , SMTP_ErrAuth , SMTP_ErrSslCon , SMTP_ErrCertNotTrusted
}
 SMTP error codes. More...
 

Functions

void SMTP_constructor (SMTP *o, const char *from, const char *to, const char *subject, const char *smtpServer, int port, SharkSsl *sharkSsl, int startTLS, const char *username, const char *password, const char *clientDomainName, const char *serverDomainName, SeCtx *ctx)
 Documentation: SMTP::SMTP. More...
 
void SMTP_destructor (SMTP *o)
 Documentation: SMTP::~SMTP. More...
 
int SMTP_addRecipient (SMTP *o, const char *to)
 Documentation: SMTP::addRecipient. More...
 
int SMTP_write (SMTP *o, const char *txt, int len)
 Documentation: SMTP::write. More...
 
int SMTP_printf (SMTP *o, const char *fmt,...)
 Documentation: SMTP::printf. More...
 
int SMTP_vprintf (SMTP *o, const char *fmt, va_list argList)
 Documentation: SMTP::vprintf. More...
 
int SMTP_commit (SMTP *o)
 Documentation: SMTP::commit. More...
 
const char * SMTP_getEmsg (SMTP *o)
 Returns the SMTP error message if any. More...