I am a new ASP.NET developer and I could be able to send email by the web application that I am working on it. Now, I want to create a page that when the user opens it, it will send email automatically. How to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all you can add some code to your Web.Config. In my example I’m using gmail server. Knowing the settings of your server you can easy change it.
Secondly you can modify your pageload event