Author |
|
dansmith Newbie
Joined: 16 December 2017 Location: United Kingdom
Online Status: Offline Posts: 9
|
Posted: 19 December 2017 at 5:35pm | IP Logged
|
|
|
Question: how to replicate the attach file to email button via custom button which will prompt the user to select a file from a separate CRM system and then attach the selected file to an email being edited before it's sent
I've been looking at uploading files at the docs page
https://afterlogic.com/docs/webmail-pro/integration-and-development/web-api/uploading-files
and can understand how to upload a file to the system using the web api, though can someone please point me to a hook or method to actually add this resulting file to the email as an attachment?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 20 December 2017 at 12:47am | IP Logged
|
|
|
Adding attachment is actually done when either sending message out or saving it to a folder (e.g. Drafts). Both can be done via Web API as shown at:
https://afterlogic.com/docs/webmail-pro/integration-and-development/web-api/sending-mail
Assuming you already have the files uploaded, you'll need to reference them in Attachments object.
Please note that we're speaking of merely API calls, this doesn't affect attaching files in WebMail interface.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
dansmith Newbie
Joined: 16 December 2017 Location: United Kingdom
Online Status: Offline Posts: 9
|
Posted: 20 December 2017 at 1:51am | IP Logged
|
|
|
Igor wrote:
Adding attachment is actually done when either sending message out or saving it to a folder (e.g. Drafts). Both can be done via Web API as shown at:
https://afterlogic.com/docs/webmail-pro/integration-and-development/web-api/sending-mail
Assuming you already have the files uploaded, you'll need to reference them in Attachments object.
Please note that we're speaking of merely API calls, this doesn't affect attaching files in WebMail interface.
--
Regards,
Igor, Afterlogic Support |
|
|
Sorry Igor, may not have been clear. I'm looking to programatically replicate the add attachment button in the front end user interface via a plugin to add a menu item - is this possible?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 20 December 2017 at 1:55am | IP Logged
|
|
|
This would be quite an advanced modification our developers can assist with, in terms of Professional Services contract. Please contact us via HelpDesk if you're interested.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|