How do you send an attachment link inside the email body, via the API similar to how the outlook addin does it?

  • 1
  • Question
  • Updated 9 months ago
How do you send an attachment link inside the email body, via the API similar to how the outlook addin does it?

I would like to send a link to the encrypted attachments in a normal email. I can do this via the outlook addin, just by clicking new mail message --> add attachments and a nice link appears. 

How would I do this or similar vai the API? I can send encrypted email with encrypted attachments, but just need to upload the attachment, get the link and send that in an email.
Photo of Chris

Chris

  • 17 Posts
  • 2 Reply Likes

Posted 9 months ago

  • 1
Photo of Eliezer Encarnacion

Eliezer Encarnacion, Official Rep

  • 732 Posts
  • 102 Reply Likes
Chris,

Do you have a screenshot of the link/UI you can share? I want to make sure I understand what you're asking about

Eli
Photo of Chris

Chris

  • 17 Posts
  • 2 Reply Likes

This is the link I would like to create via the api, I can create it via outlook.

I would like to send multiple encrypted attachments but NOT send an encrypted message.

I would like to do this via the api.

Do I need to upload the attachments as if they are a normal file?
If uploading multiple files, how do I get a link which will work for all of them?
Photo of Eliezer Encarnacion

Eliezer Encarnacion, Official Rep

  • 732 Posts
  • 102 Reply Likes
Chris,

I believe what you are looking for is a Share Link . These are links that when clicked allow the recipient to download one or more files; these are encrypted in transit and you can assign extra protections such as requiring the recipient to log in to view the file. An Encrypted Email is more about encrypting the actual message body, so if all you're looking for is a way to send attachments protected by ShareFile, a Share Link is your option.

When creating Share Links, you specify ShareFile Item ids to be shared, so you'll need to upload any files you want to share to ShareFile.

If you would like the recipients to get a ShareFile branded message with the attachment box you linked above, you can use the Deliver Send a File endpoint. Select which emails you want to send the file to, which ShareFile items to share, and ShareFile will take care of sending the branded email to the recipients.

If you would like to send the message yourself, you can use the Create Share  option, where the ShareType is "Send". This will give you back an object with an "Uri" property, which is a link you can send via email to your recipients. This is a simple hyperlink, so you'll have to create any UI or box you want the email to have.

Let me know if I answered your question, or if there's anything else I can help with.

Thanks!
Eli