Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Add attachment to open message via api Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dansmith
Newbie
Newbie


Joined: 16 December 2017
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 19 December 2017 at 5:35pm | IP Logged Quote dansmith

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 View dansmith's Profile Search for other posts by dansmith
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 20 December 2017 at 12:47am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
dansmith
Newbie
Newbie


Joined: 16 December 2017
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 20 December 2017 at 1:51am | IP Logged Quote dansmith

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 View dansmith's Profile Search for other posts by dansmith
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 20 December 2017 at 1:55am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide