Open Attachment with Link

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
 
T

Thomas Wieser

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.
 
S

Sue Mosher [MVP-Outlook]

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
 
T

Thomas Wieser

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
 
S

Sue Mosher [MVP-Outlook]

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
 

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