Open default email client from command button click

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a web-based application, located on the Internet, and I'd like to use
a command button like a hyperlink. Ideally, I'd like to have the users
default mail client be initiated with my application populating the recipient
and subject. I have the latter values in variables, I just need to know how
to initiate the user's default mail client and pass the recipient and subject
values in.

Thanks in advance!!
Jack
 
Hi Jac,

\\\
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.Button1.Text = "Send Mail"
Me.Button1.Attributes("onClick") =
"window.location='mailto:[email protected]?subject=Cor demo&body=I hope this
helps?';"
End If
End Sub
///

I hope that this one is what you mean?.

Cor
 
Back
Top