Skip to content Skip to sidebar Skip to footer

Mailto: Link With Attachment

I made an app for my client that delivers a zip file with the following example structure: index.html /files/ file.pdf /inc/ style.css Basically, the user will transfer

Solution 1:

Why not, as Dennis suggested, link to it, but with the username and password included. You can link to them like this : protocol://username:password@URL . If it's an FTP server the file's on, link to it like this: ftp://client001:a67b1f@nuk.eu . If it's a HTTP server (web server) the file's on, link to it like this: http://client002:f677gj@nuk.eu . Safari should support this since it's a main feature of browsers. You make usernames and passwords with a .htpasswd file on apache servers (the majority). If you wanted one username & pass for every client, you could use a really long random string for the username and another the password, like: http://sch7898gdgoj0o05klfckg021167pr0n:45906igfd49ps316fyh1zagf364z@peanutbutter.org For example:

mailto:johndoe@gmail.com?subject=Test&body=%3ca+href+%3d+%22http%3a%2f%2freadonlyclient%3aa7d56a8fd4h9863%40mycompany.com%22%3eDownload+File%3c%2fa%3e

If you're wondering, that's URL encoded.

Post a Comment for "Mailto: Link With Attachment"