I'm using sendmailR in my R script to send notifications.
Sometimes notification fails with the following error:
Unknown SMTP code: 452
Error in if (code == lcode) { : argument is of length zero
Execution halts.
How can I handle such errors, so that even if notification fails the script runs on?