hello Mahammed Gafoor,
this you are getting due to wrong ip when you are setting the email configuration so for that you can use
host=smtp.gmail.com
then do need of IP by using direct email connector and setting up the configuration will not get this error.
Thank you,
Geeta