In this article I will explain how to send email using Gmail SMTP Server in ASP.Net. To send email with Gmail SMTP Server, you will need to use an email address and password of a valid Gmail account .
Step-1:- Create Web Form to send Email.with some fields such as Recipient Email address, Subject, Body, Attachment, Gmail account email address, Gmail account password and a Button to send the email.
Step-2:- Go to security settings at the following link https://www.google.com/settings/security/lesssecureapps and enable less secure apps . So that you will be able to login from all apps
Step-3:- write this code to Send email using Gmail SMTP Account on send button .
No comments:
Post a Comment