Solved

how to use "mailto:" to start the default email software and add attachments automatically?

Posted on 2003-11-27
8
1,291 Views
Last Modified: 2010-05-01
I tried "mailto:someone@somewhere.com?attachment=c:\abc.txt" but it didn't added any attachments, I looked for mailto protocol in msdn, but it seemed no attachment informations.
How to do is correct?
0
Comment
Question by:prefix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9837381
0
 
LVL 16

Assisted Solution

by:Richie_Simonetti
Richie_Simonetti earned 50 total points
ID: 9837775
You could try with this exelent/free component instead, since as eddykt posted, you couldn't attach  with mailto command:

http://www.freevbcode.com/ShowCode.Asp?ID=109
0
 
LVL 1

Author Comment

by:prefix
ID: 9840932
Thanks all!

Richie_Simonetti, I just would like to start the default email client with attachments added, I'm not going to store smtp server informations in my software database and then send the email because my client will have to input each smtp server both in his default Email client and my software.
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 9845676
Most e-mail providers does not support attachments with the mailto protocol.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9849658
Your user mustn't know which smtp server are you using, why user has to write down it?
The component works to e-mail messages directly, it doesn't cares how your end user send mails.
0
 
LVL 1

Author Comment

by:prefix
ID: 9857539
Richie_Simonetti, why does my user mustn't know the smtp server? I mean I'm not using my smtp server to send mails, the user use his own email boxex to send his mails, his email boxes settings maybe in Outlook Express, or Outlook, or any other Email clients(but in my case, Only Outlook Express is the most important). Each email box has its smtp server.

If the "mailto" protocol does not support attachments, is there any system service/api can be called?
I figured out there's a file with the ".MAPIMAIL" extension in the sendto folder, the file was an empty file just only had a special extension, but when dragging a file on it or using the "send to" menu to send a file, it started the email client with the file attached, that's what I'm look for. I tried many method to call the system function but no results found.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 9857567
0
 
LVL 1

Author Comment

by:prefix
ID: 9863776
Thanks emoreau, that's a good idea. I just simply tried but it works great!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question