Solved

Open Email client on Cleints Machine

Posted on 2014-01-17
1
334 Views
Last Modified: 2014-01-17
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
Comment
Question by:whiwex
1 Comment
 

Accepted Solution

by:
whiwex earned 0 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now