sendmail OnAnyError event
Return to Introduction  Previous page  Next page
Applies to
SendMail component.  

Declaration
property OnAnyError: TNotifyEvent;  

Description
The OnAnyError event occurs when ANY fatal error has occured on delivering the message to server (except OnCantAttach).  
 
The fatal error means that message could not be delivered. Such errors can be also handled by following events: OnConnLost, OnHostUnreachable and OnSMTPError.  

See also
OnConnLost, OnHostUnreachable and OnSMTPError events.  
File not found.