Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / August 2005

Tip: Looking for answers? Try searching our database.

MailTo: link with attachments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Bogue [MVP] - 20 Aug 2005 20:11 GMT
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

Signature

Robert L. Bogue, MS MVP, MCSE, MCSA:Security, Etc.
Blog: http://www.thorprojects.com/blog 

BillR [MVP] - 21 Aug 2005 13:41 GMT
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).

> 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
Charlie Gotwald - 23 Aug 2005 17:19 GMT
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!

> 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
Charlie Gotwald - 23 Aug 2005 17:37 GMT
Allow me to clean that link up for you...

mailto:Bob@domain.com?subject=Off Normal List for
08/23/2005&attachments="C:\Temp\File.txt"

> Well I know how it used to work in Office 2000... That is why I'm here.
>
[quoted text clipped - 15 lines]
> >
> > Rob
Robert Bogue [MVP] - 24 Aug 2005 12:54 GMT
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.

Signature

Robert L. Bogue, MS MVP, MCSE, MCSA:Security, Etc.
Blog: http://www.thorprojects.com/blog

> Allow me to clean that link up for you...
>
[quoted text clipped - 27 lines]
>> >
>> > Rob
Charlie Gotwald - 24 Aug 2005 13:12 GMT
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.

> Charlie:
>
[quoted text clipped - 33 lines]
> >> >
> >> > Rob
Charlie Gotwald - 25 Aug 2005 19:59 GMT
Robert, I FOUND THE ANSWER!

mailto:Bob@domain.com?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])

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.