How to check if the email message has been sent or not

Hi, I am sending email to a particular email id. I want to delete the attachment from local drive once email has been sent. For this I want to apply a condition as below.

If (Email Sent)
Delete Attachment
End-IF

Please suggest how can I check in uipath if email has been sent successfully.

Hello Narayan,

You can use writeline or log message activity after delete attachment.
you may write message like "Email has been sent"

Regards,
Pankaj

@Pankaj.Patil Thanks