is there any validation for email address in order to prevent mailing to incorrect email address? I'm using Job to sending the mail, so i want the job is going to failed_jobs table when it sends incorrect email address.
@RemiM Thank you for replying to my thread! Does this validation ensure that the email address belongs to a real, active user? Because I'm trying such email:rfc,dns, but it didn't seem to make a difference or return an error
@Bernard123 No, it does not. rfc ensures the email follows proper formatting rules, while rfc checks if the domain has valid MX records. You can check the Email Verification documentation that, combine with the email validation rules, may be sufficient for your needs or check for services like Mailgun.
If someone mistypes their email address and it goes to someone else, you won't have a way to know that. If you send it to an email address that doesn't exist, that error won't reach your application. It would bounce back to your mail server (which you could monitor programmatically, but this is likely to be overkill).
You technically could, if you want to monitor your mail server or the sending email address for bounce-backs. Implementation would depend on your specific setup. Third-party services/APIs may also allow you to detect these bounces (I haven't needed this, so I won't promote or suggest a specific one).
In most cases, I think performing DNS validation at the request level and using the built-in email verification features should suffice.