views:

38

answers:

2

Hi,

I will send an email with a given adress by open the standart email programm like "mailto:" in an a-tag will do it, but within a button click.

How?

+4  A: 

Here's how:

Process.Start("mailto:[email protected]");

Additionally, you can PInvoke into ShellExecute to gain more control over this.

Anton Gogolev
+2  A: 

Example from here

private void btnEmail_Click(object sender, EventArgs e)  
{ 
   string command = "mailto:info[at]codegain.com?subject=The Subject&bcc=vrrave[at]codegaim.com";  
   Process.Start(command); 
}
Svetlozar Angelov