Click here to Skip to main content
16,019,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
if user send his details like name,email,ph no etc.then click on Send button..how can we get his details .i want that code..how to write it..


please,,,,,,,.........

Thanks and regards,
Pavan.
Posted

This link will help you

http://mrbool.com/inserting-data-into-sql-server-database-using-csharp-and-asp-net/25091
 
Share this answer
 
You have to use the System.Net.Mail class to send emails in C#. The mail server settings are set up in your web.config file under the system.net mailsettings section. Consider that email is sent using GMail account would use the following host settings with port number 587:

XML
<system.net>
    <mailSettings>
      <smtp from="[email_address_here]">
        <network host="smtp.gmail.com" port="587" userName="[username]" password="[password]" enableSsl="true" />
      </smtp>
    </mailSettings>
</system.net>


At the top you may also include the class
C#
using System.Net.Mail;

to have SMTP Client Access.
 
Share this answer
 
Comments
Member 12057131 2-Dec-15 2:55am    
can u give me any links ?.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900