Reputation: 145
I'm trying to open an email with an attachment from my web page. All users have MS outlook and have access to the files I'm trying to attach. When I try it as follows it opens the email but doesn't attach anything
<a href='mailto:[email protected]?Attachment="C:\test\test.txt"'>Attach to Email</a>
What could be the issue?
Thanks
Upvotes: 0
Views: 259
Reputation: 24
Mailto links with attachments aren't possible. This would be a bit of a security hole if they were. You will have to include a link to the file somewhere else.
Chris Coyier does a good job of covering all possibilities of mailto links
https://css-tricks.com/snippets/html/mailto-links/
Upvotes: 1