OnCantAttach event
|
SendMail component.
|
type
|
TSMTPCantAttachEvent = procedure(Sender: TObject; FileName: String) of object;
|
|
property OnCantAttach: TSMTPCantAttachEvent;
|
The OnCantAttach event occurs if the component could not read the file which should be attached (listed in Attach property).
|
|
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.
|
Attach property; Abort method.
|