sendmail OnCantAttach property
Return to Introduction  Previous page  Next page
Applies to
acSendMail component.  

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

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.