mailR
mailR copied to clipboard
No recovery for invalid email
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?
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.
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.