Solved

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

Posted on 2003-11-27
8
1,247 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
Comment Utility
0
 
LVL 16

Assisted Solution

by:Richie_Simonetti
Richie_Simonetti earned 50 total points
Comment Utility
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
Comment Utility
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
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
Most e-mail providers does not support attachments with the mailto protocol.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
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
Comment Utility
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 69

Accepted Solution

by:
Éric Moreau earned 50 total points
Comment Utility
0
 
LVL 1

Author Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now