Iam not able to send mail after form submission.
This is my web config:
host="smtp.gmail.com" userName="mymailid" password="mypassword" port="587"/>
Did you follow the example on this page? Your sample doesn't look like that sample. https://world.episerver.com/documentation/developer-guides/CMS/Deployment/configuring-your-email-server/
Gmail may need SSL enabled on your website.