Solved

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

Posted on 2003-11-27
8
1,270 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA color chart bars 12 84
Saving history changes to sub form 4 42
Windows Script Host failed (Access is denied.) error 6 145
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 51
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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

786 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