Open Attachment with Link

  • Thread starter Thread starter Thomas Wieser
  • Start date Start date
T

Thomas Wieser

Hi,


I want to open an attchment in a HTML email by clicking on a link. I
trid several versions with JavaScript, but they didn't work. :-(

Has anyone tips how to implement such a functionality?


Thanks in advance,
Thomas
 
What kind of link?

Just a normal HTML one, like

<a href="javascript:showAttachment(filename)">Click here</a>


would be pretty enough, onClick would also be no problem! Any ideas?


Thanks, Thomas.
 
Outlook messages don't run HTML code. You'd need to use a straight <a> link
instead:

<a href="file://filename">

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Hi,
Outlook messages don't run HTML code. You'd need to use a straight <a> link
instead:
<a href="file://filename">

Thanks, but it doesn't solve my problem. The mouse pointer turns into a
hand when over the link, of course, but by clicking an alert with the
german version of 'Can't find file "\\myAttachment.pdf"' is shown.

Any other ideas?


Regards, Thomas
 
Looks like you didn't provide the full path to the file. But now I read from
your subject line something I didn't see in your earlier message -- that
you're trying to open an attachment with this technique. That's not
possible.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top