473,385 Members | 1,782 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,385 software developers and data experts.

Opening standard mail client

Hi,

using vb .NET 2003 I am trying to open the standard mail client. The mail
window should open and the user should be able to choose the recipient, add
some text to the mail etc.

Using Process.Start with "mailto" doesn't help as I want to add attachments
already in the code. I don't want to use the Outlook reference as the user
may not have Outlook installed on the system. I found that something called
Simple MAPI may be used but I was not able to find an example, some articles
in the MS knowledge base about this subject are no longer existent.

Any other ideas how this can be done?

Thanks for any help :-)
Bernhard
Nov 23 '05 #1
6 2822
"Bernhard Straub" <mu******@gmx.de> schrieb:
using vb .NET 2003 I am trying to open the standard mail client. The mail
window should open and the user should be able to choose the recipient,
add some text to the mail etc.

Using Process.Start with "mailto" doesn't help as I want to add
attachments already in the code. I don't want to use the Outlook reference
as the user may not have Outlook installed on the system. I found that
something called Simple MAPI may be used but I was not able to find an
example, some articles in the MS knowledge base about this subject are no
longer existent.


IIRC Simple MAPI isn't suitable for solving the problem too because it
cannot be used to launch the mail client with the mail opened.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #2
Try using a "shellexecute" of mailto:recipient

this will popup the default mailer with the address filled in.

In VB.Net 2003 you need to use the process class with a processinfo to start
a process and not the shellexecute instruction anymore.

HTH

SBS
"Bernhard Straub" <mu******@gmx.de> a écrit dans le message de news:
%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

using vb .NET 2003 I am trying to open the standard mail client. The mail
window should open and the user should be able to choose the recipient,
add some text to the mail etc.

Using Process.Start with "mailto" doesn't help as I want to add
attachments already in the code. I don't want to use the Outlook reference
as the user may not have Outlook installed on the system. I found that
something called Simple MAPI may be used but I was not able to find an
example, some articles in the MS knowledge base about this subject are no
longer existent.

Any other ideas how this can be done?

Thanks for any help :-)
Bernhard

Nov 23 '05 #3
"S. B@RTHES" <no****@nomail.com> schrieb:
Try using a "shellexecute" of mailto:recipient


Are you sure you read the OP's post :-)?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 23 '05 #4
Sorry, that doesn't help since I'd like to add an attachment ;-)

Any other ideas? I guess I could do late binding and check if Outlook is
present on the system. But this doesn't really satisfy me...

Bernhard

"S. B@RTHES" <no****@nomail.com> wrote in message
news:43***********************@news.free.fr...
Try using a "shellexecute" of mailto:recipient

this will popup the default mailer with the address filled in.

In VB.Net 2003 you need to use the process class with a processinfo to
start a process and not the shellexecute instruction anymore.

HTH

SBS
"Bernhard Straub" <mu******@gmx.de> a écrit dans le message de news:
%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

using vb .NET 2003 I am trying to open the standard mail client. The mail
window should open and the user should be able to choose the recipient,
add some text to the mail etc.

Using Process.Start with "mailto" doesn't help as I want to add
attachments already in the code. I don't want to use the Outlook
reference as the user may not have Outlook installed on the system. I
found that something called Simple MAPI may be used but I was not able to
find an example, some articles in the MS knowledge base about this
subject are no longer existent.

Any other ideas how this can be done?

Thanks for any help :-)
Bernhard


Nov 23 '05 #5
Dear Bernhard Straub,

Why do you want it to open the default email client? Why not create a form
where you can enter these values?

Michel van den Berg

--
== Remove nospam to email me ==
"Bernhard Straub" <mu******@gmx.de> schreef in bericht
news:Oi**************@tk2msftngp13.phx.gbl...
Sorry, that doesn't help since I'd like to add an attachment ;-)

Any other ideas? I guess I could do late binding and check if Outlook is
present on the system. But this doesn't really satisfy me...

Bernhard

"S. B@RTHES" <no****@nomail.com> wrote in message
news:43***********************@news.free.fr...
Try using a "shellexecute" of mailto:recipient

this will popup the default mailer with the address filled in.

In VB.Net 2003 you need to use the process class with a processinfo to
start a process and not the shellexecute instruction anymore.

HTH

SBS
"Bernhard Straub" <mu******@gmx.de> a écrit dans le message de news:
%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

using vb .NET 2003 I am trying to open the standard mail client. The
mail window should open and the user should be able to choose the
recipient, add some text to the mail etc.

Using Process.Start with "mailto" doesn't help as I want to add
attachments already in the code. I don't want to use the Outlook
reference as the user may not have Outlook installed on the system. I
found that something called Simple MAPI may be used but I was not able
to find an example, some articles in the MS knowledge base about this
subject are no longer existent.

Any other ideas how this can be done?

Thanks for any help :-)
Bernhard



Nov 23 '05 #6
Dear Michael,

I'm developing an addin for MindManager From this it should be possible to
send a file to an email recipient. Of course I could add a form where users
could enter all the necessary values (smtp server etc.) but I think this is
rather ugly. Also I'm not sure but I think a mail which would be sent like
this does not appear in the outbox of the mail client (?).

When you are in Office or MindManager there is a Send to-functionality and
the mail client is opened. This is the usual environment and offers all
editing possibilities.

My current solution is that I check if Outlook is installed and use late
binding. If Outlook is not found then the option to send mail is just not
present. I still hope for a universal solution that works with every MAPI
mail client (Outlook Express, Thunderbird...).

Bernhard Straub

"Michel van den Berg" <mv*@promontis.nl> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Dear Bernhard Straub,

Why do you want it to open the default email client? Why not create a form
where you can enter these values?

Michel van den Berg

--
== Remove nospam to email me ==
"Bernhard Straub" <mu******@gmx.de> schreef in bericht
news:Oi**************@tk2msftngp13.phx.gbl...
Sorry, that doesn't help since I'd like to add an attachment ;-)

Any other ideas? I guess I could do late binding and check if Outlook is
present on the system. But this doesn't really satisfy me...

Bernhard

"S. B@RTHES" <no****@nomail.com> wrote in message
news:43***********************@news.free.fr...
Try using a "shellexecute" of mailto:recipient

this will popup the default mailer with the address filled in.

In VB.Net 2003 you need to use the process class with a processinfo to
start a process and not the shellexecute instruction anymore.

HTH

SBS
"Bernhard Straub" <mu******@gmx.de> a écrit dans le message de news:
%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

using vb .NET 2003 I am trying to open the standard mail client. The
mail window should open and the user should be able to choose the
recipient, add some text to the mail etc.

Using Process.Start with "mailto" doesn't help as I want to add
attachments already in the code. I don't want to use the Outlook
reference as the user may not have Outlook installed on the system. I
found that something called Simple MAPI may be used but I was not able
to find an example, some articles in the MS knowledge base about this
subject are no longer existent.

Any other ideas how this can be done?

Thanks for any help :-)
Bernhard



Nov 23 '05 #7

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

Similar topics

13
by: Peter Amberg | last post by:
I would like to create a link on my page that opens the standard e-mail application when someone clicks it. It should have at least the subject preset, better if I could preset the body as well. I...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
1
by: Charlie | last post by:
Hi: Is there a way to pop open a mail client and pass in a text string for the subject and possibly other parts of a standard mail message? The "mailto:" attribute of hyplerlink leaves these...
9
by: John Lafrowda | last post by:
Hello experts, I'm coding a routine which should open a new mail form of the mail standard mail client installed on a system (e.g. outlook, outlook express, netscape mail, etc.) for support...
2
by: anshukher | last post by:
hi, i am making a windows application in C# and in that when i click on the send button the default mail client should open along with the attachment that i have browsed already! i have tried to...
4
by: dustin | last post by:
I've been hacking away on this PEP for a while, and there has been some related discussion on python-dev that went into the PEP: ...
14
by: luc.saffre | last post by:
Hello, the simplest way to launch the user's standard mail client from a Python program is by creating a mailto: URL and launching the webbrowser: def...
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: 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
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
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
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.