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

Declaration
type  
  TSMTPCantAttachEvent = procedure(Sender: TObject; FileName: Stringof object;  
 
property OnCantAttach: TSMTPCantAttachEvent;  

Description
The OnCantAttach event occurs if the component could not read the file which should be attached (listed in Attach property).  
 
tip This is not fatal error, so SendMail will try to continue sending the message without missed file. If you don't want to continue process — just call Abort method in the event handler.  

See also
Attach property; Abort method.