473,394 Members | 1,715 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,394 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 2727
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: 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: 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?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.