DATA 数据:这会触发客户端和服务器之间的数据传输。所有邮件内容都将移动到SMTP服务器,SMTP服务器将以345回复代码进行响应。消息的内容被传输到服务器,在服务器中,一个点被单独发送到一行中,以表示消息的结束。如果接受并准备好交付,服务器将发送另一个250 OK代码。此时,邮件正在发送给收件人的途中。
#define SMTP_SERV_NOSERVICE 421 /* Server error: <domain> Service not available, closing transmission channel */ #define SMTP_SERV_NOMAILBOX 450 /* Server error: Requested mail action not taken: mailbox unavailable */ #define SMTP_SERV_ACTABORT 451 /* Server error: Requested action aborted: local error in processing */ #define SMTP_SERV_NOSTORAGE 452 /* Server error: Requested action not taken: insufficient system storage */ #define SMTP_SERV_NOTLS 454 /* Server error: TLS not available */ #define SMTP_SERV_SYNTAX 500 /* Syntax error, command unrecognised */ #define SMTP_SERV_SYNTAX_P 501 /* Server error: Syntax error in parameters or arguments*/ #define SMTP_SERV_UNKNOWN 502 /* Server error: Unknown command */ #define SMTP_SERV_BADSEQ 503 /* Server error: Bad sequence of commands */ #define SMTP_SERV_NCMDPAR 504 /* Server error: Command parameter not implemented */ #define SMTP_SERV_NOACCMAIL 521 /* Server error: <domain> does not accept mail (see rfc1846) */ #define SMTP_SERV_STARTTLS 530 /* Server error: Start TLS needed */ #define SMTP_SERV_AUTHERR 535 /* Server error: Authentication failed */ #define SMTP_SERV_NOMBOXNM 550 /* Server error: Requested action not taken: mailbox unavailable */ #define SMTP_SERV_USRNOLOCL 551 /* Server error: User not local; please try <forward-path> */ #define SMTP_SERV_EXCSTOR 552 /* Server error: Requested mail action aborted: exceeded storage allocation */ #define SMTP_SERV_MBXNMNALL 553 /* Server error: Requested action not taken: mailbox name not allowed */ #define SMTP_SERV_TMUNKCOM 554 /* Server error: Transaction failed*/