Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please tell the code in C# and i dont have knowledge about setting up the SMPT sever.....
Posted
Comments
Sergey Alexandrovich Kryukov 14-Feb-12 11:12am    
Aha, and if you are not to click on the button, e-mail is not going to be sent... I see... :-)
--SA

There is a tip here with full source code: Sending an Email in C# with or without attachments: generic routine.[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Feb-12 11:12am    
That's is, a 5.
--SA
 
Share this answer
 
Try this:

<pre lang="c#">Response.Redirect("mailto:abc@gmail.com");</pre>

this will open your default mailing application...

Or else you can also use this:

<pre lang="HTML"><a href="mailto:abc@gmail.com">Mail Me</a></pre>

all the best...
 
Share this answer
 

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