Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

Open Email client on Cleints Machine

I am using vb.net 2008. I have a page with a gridview with names and emails.
When the client clicks a row I want to open the clients default email with the
To field and Subject Field populated. I use the code below but it looks like it opens the
default email client on the server not on the clients machine.
Dim theStringBuilder As New System.Text.StringBuilder()
        theStringBuilder.Append("mailto:" & gvMembers.SelectedRow.Cells(4).Text)
        theStringBuilder.Append("&subject=")
        theStringBuilder.Append("")
        System.Diagnostics.Process.Start(theStringBuilder.ToString())
How do you open the email client on the clients amchine?

Thanks
0
whiwex
Asked:
whiwex
1 Solution
 
whiwexAuthor Commented:
I found this and it resolved my problem.
<asp:HyperLink ID="linkEmail" runat="server" Text='<%#Eval("Email") %>' NavigateUrl='<%# getMailTo(Eval("Email"),Eval("Cc"),Eval("Subject"),Eval("Body")) %>' />

Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now