Click here to Skip to main content
15,069,832 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

We are create a contact us from for Static website, we want to generate code to send email to admin without use outlook, we are taken input only Customer Name, Customer Email and Customer Comments.....

Please tell me solution about this as soon as possible.

Thank u,


Regards,
Rohit Gurav
Posted

1 solution

In HTML? Nasty, and dangerous: bots crawl for email addresses, which you have to provide as part of your webpage in order to use it. If you don't mind your server being spammed forever, then MAILTO will still work (though it's cumbersome for the user if they use gmail or similar). Google will find you examples.

A better idea is to do it in the codebehind: Simple and safe!
Sending an Email in C# with or without attachments: generic routine.[^]
   

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