Expose didSendEmail hook. Show alert (instead of log) when PDF is too big