473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Outlook

I have a C# ASP.NET webform that has a linkbutton control wherein if the user
clicks it, it should open up Microsoft Outlook as a separate window with the
To: edit box filled in with an email address. The user should be able to send
an email. How do I go about doing this?
Nov 17 '05 #1
3 1448
use mailto:th*@email.com structure in linkbutton link field

--
Tamir Khason
"The computer is no better
than its program." [Elting Elmore Morison]
http://www.dotnet.us/

"Newbie" <Ne****@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have a C# ASP.NET webform that has a linkbutton control wherein if the
user
clicks it, it should open up Microsoft Outlook as a separate window with
the
To: edit box filled in with an email address. The user should be able to
send
an email. How do I go about doing this?

Nov 17 '05 #2
Or use COM interop to be sure you are using MS Outlook (when it is not the
default mail handler) :-)

"Tamir Khason" <ta***@removeme.khason.biz> wrote in message
news:uz**************@TK2MSFTNGP09.phx.gbl...
use mailto:th*@email.com structure in linkbutton link field

--
Tamir Khason
"The computer is no better
than its program." [Elting Elmore Morison]
http://www.dotnet.us/

"Newbie" <Ne****@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have a C# ASP.NET webform that has a linkbutton control wherein if the
user
clicks it, it should open up Microsoft Outlook as a separate window with
the
To: edit box filled in with an email address. The user should be able to
send
an email. How do I go about doing this?


Nov 17 '05 #3
Tamir,

Can u pls. elaborate. I was looking at the linkbutton properties and didnt
find a structure or link field property. I also added mailto:th*@email.com in
the message handler lbtnMyButton_Click(object sender, System.EventArgs e) but
its not building.

"Tamir Khason" wrote:
use mailto:th*@email.com structure in linkbutton link field

--
Tamir Khason
"The computer is no better
than its program." [Elting Elmore Morison]
http://www.dotnet.us/

"Newbie" <Ne****@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have a C# ASP.NET webform that has a linkbutton control wherein if the
user
clicks it, it should open up Microsoft Outlook as a separate window with
the
To: edit box filled in with an email address. The user should be able to
send
an email. How do I go about doing this?


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fritz Switzer | last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in Outlook XP. I've seen a couple of examples in C++ and VB in previous newsgroup posts, but either the originals didn't work...
10
by: John | last post by:
Hi When I open a new outlook email from vb.net, sometimes outlook is very slow to appear or occasionally outlook freezes completely. I am targeting mixed office2000/xp environments so I am...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
9
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
3
by: John | last post by:
Hi I am trying to access outlook contacts folders and delete the contacts that do not contain a certain category value in the categories field. I have written the below code but am stuck with...
7
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
8
by: Li Pang | last post by:
Hi, I used following codes to pass a message item from CDO to Outlook. They worked fine when I used outlook 2000, but get an error of "Specified cast is not valid." when I used Outlook 2003....
3
by: wizzbangca | last post by:
Hi everyone. Having problems with a utility I am writing for work. The previous IT Director thoughtfully allowed 3 (2000, xp, 2003) versions of outlook to be installed rather than 1. Now I need...
2
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
4
by: Brian Hampson | last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no longer code against MAPI.DLL It's gone :( Using C#, I used to get the MAPI session, and from that I could change the out of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.