mailR icon indicating copy to clipboard operation
mailR copied to clipboard

No recovery for invalid email

Open gerrymanoim opened this issue 9 years ago • 2 comments
trafficstars

This is more of a feature request than a bug, sorry if this isn't the right place for this.

I have an issue where if I send an email to a few people, one of whom has an invalid/deactivated email, the send.email call fails. I can see in the log that that the smtp server recognizes which is the invalid user, but there's no good way I can see to fix this.

Can send.mail return either a success or an error with which emails were invalid? Otherwise can it send emails to the valid addresses, and warn on the invalid address?

gerrymanoim avatar May 15 '16 22:05 gerrymanoim

Hi - could you be more clear about what you mean by an invalid email address? send.mail() checks whether email addresses are well formed before attempting to send the email. If any address is invalid, it will throw an error before even making an attempt to send the email.

rpremraj avatar Jul 05 '16 19:07 rpremraj

I know what he means. And I meet the same situation. I set a crontab task to send mail to some colleges. But some day one of them resigned, and his mail address is closed. Then the script goes wrong and all the receivers can't receive the mail. I have to send the mail by hand to check which receiver is invalid.

wzrzt avatar Aug 24 '17 02:08 wzrzt