473,399 Members | 2,478 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,399 software developers and data experts.

Launch Outlook express with attachment

Hi,

I want to launch Outlook express with attachment. Any ideas ?

Thanks

Thejus
Nov 16 '05 #1
5 2728
Thejus,

Launching outlook express is the easy part. You can use the Process
class to do this. However, what do you mean by "with attachment". Do you
mean that you want to open a new message dialog with a file attached? If
this is the case, I don't know that you can do it. Assuming that OE is your
default mail browser, you can easily open up the url mailto:<email address>
and it will open up the default mail composer window for the system.

However, getting an attachment on there is a different story, I don't
know that OE provides some sort of automation interface.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Thejus" <th*************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,

I want to launch Outlook express with attachment. Any ideas ?

Thanks

Thejus

Nov 16 '05 #2
Try this:

using System.Diagnostics;
string sentEmail = "de**@mydomain.com";
string subject = "I love dotNET";
string body = "This is the message body";
string msg = string.Format( "mailto:{0}?subject={1}&body={2}", sentEmail ,
subject, body);
Process.Start( msg);

--
Regards,

Jose Luis Manners, MCP

"Thejus" <th*************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,

I want to launch Outlook express with attachment. Any ideas ?

Thanks

Thejus

Nov 16 '05 #3
Try this:

using System.Diagnostics;
string sentEmail = "de**@mydomain.com";
string subject = "I love dotNET";
string body = "This is the message body";
string msg = string.Format( "mailto:{0}?subject={1}&body={2}", sentEmail ,
subject, body);
Process.Start( msg);

--
Regards,

Jose Luis Manners, MCP

"Thejus" <th*************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,

I want to launch Outlook express with attachment. Any ideas ?

Thanks

Thejus

Nov 16 '05 #4
You've seem to miss the point entirely, why don't you take some time to
actually read what I said and then comment on it.

Thanx,

Thejus

"Jose Luis Manners" <jlmanners(-arroba-)acm.org> wrote in message
news:#$**************@TK2MSFTNGP10.phx.gbl...
Try this:

using System.Diagnostics;
string sentEmail = "de**@mydomain.com";
string subject = "I love dotNET";
string body = "This is the message body";
string msg = string.Format( "mailto:{0}?subject={1}&body={2}", sentEmail ,
subject, body);
Process.Start( msg);

--
Regards,

Jose Luis Manners, MCP

"Thejus" <th*************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,

I want to launch Outlook express with attachment. Any ideas ?

Thanks

Thejus


Nov 16 '05 #5
Yes, I missed the point regarding attachments. I apologize.

--
Regars,

Jose Luis Manners, MCP

"Thejus" <th*************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
You've seem to miss the point entirely, why don't you take some time to
actually read what I said and then comment on it.

Thanx,

Thejus

"Jose Luis Manners" <jlmanners(-arroba-)acm.org> wrote in message
news:#$**************@TK2MSFTNGP10.phx.gbl...
Try this:

using System.Diagnostics;
string sentEmail = "de**@mydomain.com";
string subject = "I love dotNET";
string body = "This is the message body";
string msg = string.Format( "mailto:{0}?subject={1}&body={2}", sentEmail , subject, body);
Process.Start( msg);

--
Regards,

Jose Luis Manners, MCP

"Thejus" <th*************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,

I want to launch Outlook express with attachment. Any ideas ?

Thanks

Thejus



Nov 16 '05 #6

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

Similar topics

1
by: MLH | last post by:
I'm trying to overcome the pop-up warning issued by Outlook Express when an Access application uses SendObject to mail an attachment (report object converted to an rtf file) to a specified...
12
by: Arno R | last post by:
Hi all, This is a repost of a message posted at october 6. The answer I got was about MapiMessages.AttachmentIndex. I think I need the MSMAPI32.OCX to use this. (I don't have this file on my PC)...
5
by: Randy Harris | last post by:
I'm using the CreateObject method to send email from Access. Set objOutlook = CreateObject("Outlook.Application") This, of course, launches Outlook to send the message. Anyone know if there...
8
by: pieterc | last post by:
He everbody, I came across a positng dated 2001 about the above. I copied the code Hans De Schrijver posted at that time but I need more help. I need to create a different reports for each...
3
by: Prakash Wadhwani | last post by:
Hi !! I have been browsing around but have not been able to find a simple, lucid solution ... or maybe I'm just too confused. I know this has been asked before by many ... but pls bear with me. ...
1
by: Thejus | last post by:
Hi, I want to launch Outlook express with a file attached. The file can be of type *.xls/*.txt/*.doc. I have the application with Outlook, but I want it for Outlook Express. Which COM I will...
1
by: vijay | last post by:
Hi, How can i launch outlook express6.0 with attachment from c# application ? Thanks in advance, vijay
1
by: handokowidjaja | last post by:
Hi All, Several weeks ago i started a topic with the same subject, however the solutions provided was for using MS Outlook (fullblown version). I finally found something that works directly with...
3
by: sbettadpur | last post by:
hello I designed a web application using php and mysql for this i need to extract mail attachment from outlook express (specifically .doc files) for this is there any API's or any class or any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.