How to handle invalid recipients email addresses using SMTP

Hello folks,

I am using SMTP mail message to send the emails. But if i provide the invalid recipient email address(ex 123@gmail.com) its not throwing any error . How would i handle when there are invalid recipients email addresses and the addresses to which the mail was not delivered. Please suggest. Thanks in Advance