PC Review


Reply
Thread Tools Rate Thread

How can I opening a new Outlook email message?

 
 
Quick
Guest
Posts: n/a
 
      11th Dec 2006
All I want to do is have a user click on a link, an image, a button or
anything and have it launch an outlook new mail message window with a
supplied email address.

Something similar to how the HTML anchor tag works when you use
"mailto:"

Is this possible?

I working with a link colum in a DataGridView at the moment, but I'd
assume the functionality would be the same across all controls...

Any ideas would be appreciated.

 
Reply With Quote
 
 
 
 
Jeff Gaines
Guest
Posts: n/a
 
      11th Dec 2006
On 11/12/2006 in message
<(E-Mail Removed)> Quick wrote:

>All I want to do is have a user click on a link, an image, a button or
>anything and have it launch an outlook new mail message window with a
>supplied email address.
>
>Something similar to how the HTML anchor tag works when you use
>"mailto:"
>
>Is this possible?
>
>I working with a link colum in a DataGridView at the moment, but I'd
>assume the functionality would be the same across all controls...
>
>Any ideas would be appreciated.


How about this:

public static bool SendEmail(string strEmailAddress)
{
bool blnOK = false;

System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.RedirectStandardOutput = false;
p.StartInfo.FileName = "mailto:" + strEmailAddress;
p.StartInfo.UseShellExecute = true;
try
{
p.Start();
blnOK = true;
}
catch
{
blnOK = false;
}
return blnOK;
}

--
Jeff Gaines
Damerham Hampshire UK
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the message opening date in the outlook email Memo Microsoft Outlook Form Programming 5 12th Nov 2009 02:20 PM
Opening saved email in Outlook message format =?Utf-8?B?TWFyaw==?= Microsoft Word Document Management 0 8th Feb 2005 03:57 PM
Opening JPEG email attachments in Outlook 2002? Error message: A. =?Utf-8?B?dml2bzQ=?= Microsoft Outlook Discussion 6 5th Oct 2004 07:21 PM
How to view email message in Outlook without opening it =?Utf-8?B?dGFtYQ==?= Microsoft Outlook Discussion 1 25th Aug 2004 06:29 PM
Error message during opening a url in outlook email Pervez Microsoft Outlook 0 20th Dec 2003 05:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 PM.