20 #define CONNECT_TO_SMTP_SERVER_FAILED (-1) 21 #define INITIAL_SERVER_REPLY_FAILED (-2) 22 #define HELO_SERVER_REPLY_FAILED (-3) 23 #define MAIL_FROM_SERVER_REPLY_FAILED (-4) 24 #define RCPT_TO_SERVER_REPLY_FAILED (-5) 25 #define DATA_SERVER_REPLY_FAILED (-6) 26 #define DATA_END_SERVER_REPLY_FAILED (-7) 27 #define AUTH_LOGIN_SERVER_REPLY_FAILED (-8) 28 #define USER_ID_SERVER_REPLY_FAILED (-9) 29 #define PASSWORD_SERVER_REPLY_FAILED (-10) 30 #define CONNECT931_SMTP_SERVER_FAILED (-11) 125 PCSTR from_addr_rev_path,
126 PCSTR from_addr_memo_hdr,
136 int SendMailAsServer(PCSTR from_addr, PCSTR to_addr, PCSTR subject, PCSTR textbody);
138 extern uint16_t SMTP_PORT;
139 extern uint16_t SMTP_AUTH_PORT;
140 extern uint16_t RFC931_PORT;
141 extern uint16_t LOCAL_MAIL_PORT;
189 extern int NB_Mail_Error_Code;
193 extern char NB_Mail_Error_String[];
196 extern char Server_Mail_Log_String[];
266 int SendMailAuthAddMIME(
int fd,
int ContentType,
const char *pContent,
const char *FileName);
283 void MIME_SendMultipartHeader(
int fd);
287 #ifdef _NB_SSL_MAILTO 291 int SMPMatch(
int fd,
int fd931, PCSTR userid, PCSTR match, uint32_t timeout);
292 int writeb64string(
int fd,
const char *cp);
293 void SaveToMailLog(
const char *buffer,
int rv);
294 extern uint16_t Server_String_Count;
Additional content types can be added above this line.
Definition: mailto.h:207
int SendMailAuthAddMIME(int fd, int ContentType, const char *pContent, const char *FileName)
Add a MIME part or attachment to an open MIME Session.
Definition: mailto.cpp:888
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.
Definition: ipv6_addr.h:28
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 ...
Definition: mailto.cpp:397
Plain text.
Definition: mailto.h:202
void PrintServerLog(int fd=0)
Prints the server log of the last send mail transaction.
Definition: mailto.cpp:1027
HTML.
Definition: mailto.h:205
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.
Definition: mailto.cpp:175
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...
Definition: mailto.cpp:167
void PrintNBError(int fd=0)
If an error occurred, prints the error information received from the SMTP server. ...
Definition: mailto.cpp:1042
Binary attachment.
Definition: mailto.h:204
Plain text attachment.
Definition: mailto.h:203
CONTENT_TYPE_ENUM
Definition: mailto.h:201
int SendMailAuthEndMIME(int fd, PCSTR userid)
Send a MIME email message and close the SMTP session.
Definition: mailto.cpp:956
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.
Definition: mailto.cpp:646
int IsMailError()
Returns the error status of the last send mail transaction.
Definition: mailto.cpp:1019