MailTo: link with attachments

R

Robert Bogue [MVP]

Does anyone know how to form a mailto: link in a web page to make it launch
Outlook and attach a file? I want to extend SharePoint to allow emailing
directly from a document library but I can't seem to figure out how to get
the link right to cause Outlook to attach a file.

Rob
 
B

BillR [MVP]

I'm not sure about with mailto but the /a switch can be used with Outlook.
A Help search in Outlook on "command-line switches" gives details.
Naturally, since this is an Outlook-only switch and you need the path to
Outlook there are limitations (as well as possibly limitations imposed by
file access from the Web).
 
C

Charlie Gotwald

Well I know how it used to work in Office 2000... That is why I'm here.

In Excel2K I used

ActiveCell.Hyperlinks.Add Anchor:=ActiveCell.Range("a1"),
Address:="mailto:OffNormal?subject=Off Normal List for
08/23/2005&attachments=""" & sFile & """", TextToDisplay:="eMail OffNormal"

to create an email link for ease of sending the newly created spreadsheet to
the people on the Offnormal distribution list. Why does this mailto link no
longer work with Office2003? This should help you Robert, now I'm asking for
a little input for me!
 
R

Robert Bogue [MVP]

Charlie:

I'd answer your questions if I could ... I suspect we're dealing with
another "security enhancement" but I'm not sure how to work around it or if
it can be worked around.
 
C

Charlie Gotwald

You're probably right there. I just wish MS would read some of the things
their customers are asking. Maybe they could tell us how to re-establish our
working remedies to our daily processes.
 
C

Charlie Gotwald

Robert, I FOUND THE ANSWER!

mailto:[email protected]?subject=Off Normal List for
08/23/2005&attachments=""C:\Temp\File.txt""

THE DOUBLE QUOTES ARE THE KEY! Thank you Microsoft for again messing with
something that truly worked!

This worked when creating a hypertext link in an Excel spreadsheet cell. I
had to check the version of the application (11.0) to know whether to use
double quotes or not (Double quotes fails when using Outlook 2000 [Version
9.0])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top