473,386 Members | 2,129 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.

how to outlookexpress

how can i call MS outlookexpress from my form button to send a new message
and set its mail subject?
Nov 16 '05 #1
2 1446
Ismail Rajput wrote:

how can i call MS outlookexpress from my form button to send a new message
and set its mail subject?


Execute:

mailto:na**@domain.com?subject=test

This will create a message addressed to 'na**@domain.com' and set the subject
to 'test'.
Nov 16 '05 #2
Here is some code that should do it for you

using System.Diagnostics;

string toEmail = "de**@publicjoe.co.uk";
string subject = "Love the Program";
string body = "Thanks a lot";
string message = string.Format( "mailto:{0}?subject={1}&body={2}", toEmail,
subject, body );

Process.Start( message );

See here for sample application

http://www.publicjoe.f9.co.uk/csharp/snip/snip007.html

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html

"Ismail Rajput" <hu************@hotmail.com> wrote in message
news:#n**************@TK2MSFTNGP09.phx.gbl...
how can i call MS outlookexpress from my form button to send a new message
and set its mail subject?

Nov 16 '05 #3

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

Similar topics

0
by: Michi | last post by:
Hello there I try to access the Outlook/Outlook Express AddressBook with the MAPISession/MAPIMessage Components. Depending on the registry setting. I can tell the sytem which AddressBook it...
29
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the...
0
by: Dhammika | last post by:
Outlook Express6 on Windows XP professional has suddenly became very slow to start.Once you click the icon the opening logo appears and thereafter it takes more than a minute to start outlook...
10
by: Mahesh.V | last post by:
Hi all I am using Visual Studio .NET and from my VB.NET application am not able to connect to database using ODBC or even native database drivers. From the same machine am able to connect to...
6
by: Ook | last post by:
Has anyone sucessfully connected a C# asp form to a MySQL database? If so, would you care to share how you did it?
2
by: Ismail Rajput | last post by:
how can i call MS outlookexpress from my form button to send a new message and set its mail subject?
1
by: Will | last post by:
I'm trying to send an email on a form submit and I keep getting this error: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid. I don't have exchange...
6
by: Simon Verona | last post by:
I have a custom class inherited from a third party control. Within the class, I need to make a backup copy of the class so that I can change the properties (font size etc) for printing. So,...
4
by: roni | last post by:
i dont like to use ocx controlx. is there new dll for vb.net that do the job ? or newer code, to send email throught outlook express.
0
hi
by: kanchana2 | last post by:
my question is how to link an email Id from vb6.0 form to outlookexpress,i.e if we click an emailid it must open in outlookexpress.
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.