29#define CONNECT_TO_SMTP_SERVER_FAILED (-1)
30#define INITIAL_SERVER_REPLY_FAILED (-2)
31#define HELO_SERVER_REPLY_FAILED (-3)
32#define MAIL_FROM_SERVER_REPLY_FAILED (-4)
33#define RCPT_TO_SERVER_REPLY_FAILED (-5)
34#define DATA_SERVER_REPLY_FAILED (-6)
35#define DATA_END_SERVER_REPLY_FAILED (-7)
36#define AUTH_LOGIN_SERVER_REPLY_FAILED (-8)
37#define USER_ID_SERVER_REPLY_FAILED (-9)
38#define PASSWORD_SERVER_REPLY_FAILED (-10)
39#define CONNECT931_SMTP_SERVER_FAILED (-11)
134 PCSTR from_addr_rev_path,
135 PCSTR from_addr_memo_hdr,
145int SendMailAsServer(PCSTR from_addr, PCSTR to_addr, PCSTR subject, PCSTR textbody);
147extern uint16_t SMTP_PORT;
148extern uint16_t SMTP_AUTH_PORT;
149extern uint16_t RFC931_PORT;
150extern uint16_t LOCAL_MAIL_PORT;
198extern int NB_Mail_Error_Code;
202extern char NB_Mail_Error_String[];
205extern char Server_Mail_Log_String[];
295void MIME_SendMultipartHeader(
int fd);
303int SMPMatch(
int fd,
int fd931, PCSTR userid, PCSTR match, uint32_t timeout);
304int writeb64string(
int fd,
const char *cp);
305void SaveToMailLog(
const char *buffer,
int rv);
306extern uint16_t Server_String_Count;
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.
Definition ipv6_addr.h:41
int SendMailAuthStartMIME(IPADDR smtp_server, PCSTR userid, PCSTR pass, PCSTR from_addr, PCSTR to_addr, PCSTR subject, int &fd)
Start a Multi-purpose Internet Mail Extension (MIME)session.
int IsMailError()
Returns the error status of the last send mail transaction.
int SendMailEx(IPADDR smtp_server, PCSTR userid, PCSTR from_addr_rev_path, PCSTR from_addr_memo_hdr, PCSTR to_addr, PCSTR subject, PCSTR textbody)
Send an email message function, extended version.
CONTENT_TYPE_ENUM
SMTP MIME Conetnet Types.
Definition mailto.h:213
int SendMail(IPADDR smtp_server, PCSTR userid, PCSTR from_addr, PCSTR to_addr, PCSTR subject, PCSTR textbody)
Send an email message. The function will open a TCP connection to the specified SMTP server,...
int SendMailAuthEndMIME(int fd, PCSTR userid)
Send a MIME email message and close the SMTP session.
int SendMailAuthAddMIME(int fd, int ContentType, const char *pContent, const char *FileName)
Add a MIME part or attachment to an open MIME Session.
void PrintServerLog(int fd=0)
Prints the server log of the last send mail transaction.
void PrintNBError(int fd=0)
If an error occurred, prints the error information received from the SMTP server.
int SendMailAuth(IPADDR smtp_server, PCSTR userid, PCSTR pass, PCSTR from_addr, PCSTR to_addr, PCSTR subject, PCSTR textbody)
Send an email message with plain text authentication. The function will open a TCP connection to the ...
@ CONTENT_TYPE_HTML_DECOMP
HTML.
Definition mailto.h:217
@ CONTENT_TYPE_PLAIN_TEXT_ATTACH
Plain text attachment.
Definition mailto.h:215
@ CONTENT_TYPE_PLAIN_TEXT
Plain text.
Definition mailto.h:214
@ CONTENT_TYPE_BINARY_ATTACH
Binary attachment.
Definition mailto.h:216
@ CONTENT_TYPE_END
Additional content types can be added above this line.
Definition mailto.h:219
NetBurner IPADDR4 Class. See the IPADDR4 Class page for complete documentation.