Rudimentary class to send email from code. More...
#include <EmailSender.h>
Public Member Functions | |
| const char * | Send (const char *hostAddress, unsigned short hostPort, const char *sender, const char *recipient, const char *senderName, const char *recipientName, const char *subject, const char *body, FileList *attachedFiles, bool doPrintf, const char *password) |
| Sends an email. | |
| int | Base64Encoding (const char *inputData, int dataLength, char *outputData, const char *base64Map) |
Protected Member Functions | |
| const char * | GetResponse (TCPInterface *tcpInterface, const SystemAddress &emailServer, bool doPrintf) |
Rudimentary class to send email from code.
Definition at line 20 of file EmailSender.h.
| int EmailSender::Base64Encoding | ( | const char * | inputData, | |
| int | dataLength, | |||
| char * | outputData, | |||
| const char * | base64Map | |||
| ) |
| const char * EmailSender::GetResponse | ( | TCPInterface * | tcpInterface, | |
| const SystemAddress & | emailServer, | |||
| bool | doPrintf | |||
| ) | [protected] |
Definition at line 304 of file EmailSender.cpp.


| const char * EmailSender::Send | ( | const char * | hostAddress, | |
| unsigned short | hostPort, | |||
| const char * | sender, | |||
| const char * | recipient, | |||
| const char * | senderName, | |||
| const char * | recipientName, | |||
| const char * | subject, | |||
| const char * | body, | |||
| FileList * | attachedFiles, | |||
| bool | doPrintf, | |||
| const char * | password | |||
| ) |
Sends an email.
| [in] | hostAddress | The address of the email server. |
| [in] | hostPort | The port of the email server (usually 25) |
| [in] | sender | The email address you are sending from. |
| [in] | recipient | The email address you are sending to. |
| [in] | senderName | The email address you claim to be sending from |
| [in] | recipientName | The email address you claim to be sending to |
| [in] | subject | Email subject |
| [in] | body | Email body |
| [in] | attachedFiles | List of files to attach to the email. (Can be 0 to send none). |
| [in] | doPrintf | true to output SMTP info to console(for debugging?) |
| [in] | password | Used if the server uses AUTHENTICATE PLAIN over TLS (such as gmail) |
Definition at line 25 of file EmailSender.cpp.

1.7.1