MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / smtpError

Function smtpError

sourcecommon/sendmail.cpp:11–53  ·  view source on GitHub ↗

--------------------------------------------------------------------------- http://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml

Source from the content-addressed store, hash-verified

9//---------------------------------------------------------------------------
10// http://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml
11static String smtpError(int code)
12{
13 switch(code)
14 {
15 case 211: return "System status, or system help reply";
16 case 214: return "Help message";
17 case 220: return "Service ready";
18 case 221: return "Service closing transmission channel";
19 case 250: return "Requested mail action okay, completed";
20 case 251: return "User not local; will forward to ";
21 case 354: return "Start mail input; end with \".\"";
22 case 421: return "Service not available, closing transmission channel";
23 case 422: return "A password transition is needed";
24 case 432: return "A password transition is needed #2";
25 case 450: return "Requested mail action not taken: mailbox unavailable";
26 case 451: return "Requested action aborted: local error in processing";
27 case 452: return "Requested action not taken: insufficient system storage";
28 case 453: return "System not accepting network messages";
29 case 500: return "Syntax error, command unrecognized";
30 case 501: return "Syntax error in parameters or arguments";
31 case 502: return "Command not implemented";
32 case 503: return "Bad sequence of commands";
33 case 504: return "Command parameter not implemented";
34 case 512: return "The host server for the recipient�s domain name cannot be found (DNS error)";
35 case 513: return "Address type is incorrect or authentication required";
36 case 521: return "Recipient address has null MX";
37 case 523: return "The Recipient�s mailbox cannot receive messages this big";
38 case 524: return "Encryption required for requested authentication mechanism";
39 case 525: return "User Account Disabled";
40 case 530: return "Access denied";
41 case 534: return "Authentication mechanism is too weak";
42 case 535: return "Username and Password not accepted";
43 case 538: return "Encryption required for requested authentication mechanism #2";
44 case 541: return "Recipient Address Rejected � Access denied";
45 case 550: return "Requested action not taken: mailbox unavailable";
46 case 551: return "User not local; please try <....>";
47 case 552: return "Requested mail action aborted: exceeded storage allocation";
48 case 553: return "Requested action not taken: mailbox name not allowed";
49 case 554: return "Transaction failed";
50 case 555: return "Invalid command arguments";
51 }
52 return String().sprintf("Unknown(%d)", code);
53}
54//---------------------------------------------------------------------------
55static AnsiString ToUft8Header(AnsiString s)
56{

Callers 1

SendInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected