G
Guest
Hi,
In my webform, I've a checkbox and when it's checked, i want to open the
client's email program (outlook, mozila and so..), add the the "to" and
"subject" to that mail.
I tried this code:
string toEmail = "Gidi Shwartzman <[email protected]>";
string subject = "I'd like to participate in CP Besketball";
string message = string.Format("mailto:{0}?subject={1}", toEmail,
subject);
Process.Start(message);
}
when I run this webpage from the visual studio, it works fins.
but when I try to access the webpage from another pc by http, the process
won't start.
what's wrong?
Thanks.
In my webform, I've a checkbox and when it's checked, i want to open the
client's email program (outlook, mozila and so..), add the the "to" and
"subject" to that mail.
I tried this code:
string toEmail = "Gidi Shwartzman <[email protected]>";
string subject = "I'd like to participate in CP Besketball";
string message = string.Format("mailto:{0}?subject={1}", toEmail,
subject);
Process.Start(message);
}
when I run this webpage from the visual studio, it works fins.
but when I try to access the webpage from another pc by http, the process
won't start.
what's wrong?
Thanks.