API Reference

Common Defintions

 

Exceptions, as defined in RFC 821

These correspond mostly 1-1 to

the ones in the RFC

   Bad_Command_Sequence                         : exception; 
   Command_Parameter_Not_Implemented            : exception; 
   Command_Unimplemented                        : exception; 
   Exceeded_Storage_Allowance                   : exception; 
   Help_Message                                 : exception; 
   Insufficent_System_Storage                   : exception; 
   Local_Error                                  : exception; 
   Mail_Box_Busy                                : exception; 
   Mail_Box_Name_Not_Allowed                    : exception; 
   Mail_Box_Unavailable                         : exception; 
   Service_Not_Available                        : exception; 
   Syntax_Error_Command_Unrecognised            : exception; 
   Syntax_Error_Invalid_Parameters_Or_Arguments : exception; 
   System_Status                                : exception; 
   Transaction_Failed                           : exception; 
   User_Not_Local                               : exception; 
   Unexpected_Response                          : exception; 

this is raised when a procedure recieves a response it should not have

Constants

   Default_SMTP_Port : constant Positive := 25; 
   Null_Path         : constant String := "<>"; 

standard command abbreviations

   Data_Cmd : constant String := "DATA"; 
   Expn_Cmd : constant String := "EXPN"; 
   Help_Cmd : constant String := "HELP"; 
   Helo_Cmd : constant String := "HELO"; 
   Mail_Cmd : constant String := "MAIL"; 
   Noop_Cmd : constant String := "NOOP"; 
   Quit_Cmd : constant String := "QUIT"; 
   Rcpt_Cmd : constant String := "RCPT"; 
   Rset_Cmd : constant String := "RSET"; 
   Saml_Cmd : constant String := "SAML"; 
   Send_Cmd : constant String := "SEND"; 
   Soml_Cmd : constant String := "SOML"; 
   Turn_Cmd : constant String := "TURN"; 
   Vrfy_Cmd : constant String := "VRFY"; 

Standard Responses

   Status_Reply               : constant Positive := 211; 
   Help_Msg                   : constant Positive := 214; 
   Service_Ready              : constant Positive := 220; 
   Closing_Channel            : constant Positive := 221; 
   Action_Completed           : constant Positive := 250; 
   Forwarding                 : constant Positive := 251; 
   Start_Mail                 : constant Positive := 354; 
   Service_Unavailable        : constant Positive := 421; 
   Unavailable_Mail_Box       : constant Positive := 450; 
   Action_Aborted             : constant Positive := 451; 
   Insufficent_Storage        : constant Positive := 452; 
   Command_Unrecognised       : constant Positive := 500; 
   Invalid_Paramaters         : constant Positive := 501; 
   Command_Not_Implemented    : constant Positive := 502; 
   Bad_Sequence               : constant Positive := 503; 
   Paramater_Not_Implemented  : constant Positive := 504; 
   MailBox_Unavailable        : constant Positive := 550; 
   Not_Local                  : constant Positive := 551; 
   Storage_Allowance_Exceeded : constant Positive := 552; 
   Mail_Box_Not_Allowed       : constant Positive := 553; 
   Failed                     : constant Positive := 554;