Identifying when sendmail() didn't suceed

Identifying when sendmail() didn't suceed

Hello -

It's previously been established that occasionally the sendmail() script does not result in an email message being sent. In several posts to this forum, Zoho Support has replied to sendmail() problems as "potentially an intermittent issue, please try it again".  I'm curious if anyone has determined the best way to confirm that the sendmail() functioned correctly so that a user or admin could manually re-fire the sendmail() function at a later time.

Thank you,
Kevin