Solved

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

Posted on 2003-11-27
8
1,283 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
  • 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

839 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