Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: How to get path of email? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Ayumiesan
Newbie
Newbie


Joined: 03 March 2016
Online Status: Offline
Posts: 11
Posted: 24 March 2016 at 6:17am | IP Logged Quote Ayumiesan

Hello, i try to download mail or attachments but i cant find the temporary path where the file mail is store, how can i get it?
Regards.
Back to Top View Ayumiesan's Profile Search for other posts by Ayumiesan
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 March 2016 at 6:51am | IP Logged Quote Alex

Hi,

Could you please specify how exactly you try to download mail or attachments – through PHP API or AJAX API or somehow else? Could you provide us some code snippet here?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Ayumiesan
Newbie
Newbie


Joined: 03 March 2016
Online Status: Offline
Posts: 11
Posted: 24 March 2016 at 7:21am | IP Logged Quote Ayumiesan

I try to download Mail or attachments with PHP API.
I have no code to show because i can't find some function wich allow to download or get mail path

Regards.
Back to Top View Ayumiesan's Profile Search for other posts by Ayumiesan
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 March 2016 at 7:28am | IP Logged Quote Alex

Unfortunately, we don't yet have an easy way to get actual attachments through our PHP API. We scheduled the development of this tool for subsequent releases. At the moment you can try to find out a solution by yourself looking through our example in the file libraries/ProjectCore/Actions.php in the "raw" function at line ~6761 (in v7.6.7). You can use directMessageToStream method for that.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Ayumiesan
Newbie
Newbie


Joined: 03 March 2016
Online Status: Offline
Posts: 11
Posted: 24 March 2016 at 9:48am | IP Logged Quote Ayumiesan

Thanks for answer, i have already try to make something with these function but i don't understand how to get the "$rResource".

I also try to use "putFile" to create temporary file of my mail but i have the same problem, i don't know how to get "$rSource".

Regards
Back to Top View Ayumiesan's Profile Search for other posts by Ayumiesan
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 March 2016 at 9:53am | IP Logged Quote Alex

Indeed, it's not easy in this version :( In the future, we'll have more friendly API for that.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Ayumiesan
Newbie
Newbie


Joined: 03 March 2016
Online Status: Offline
Posts: 11
Posted: 25 March 2016 at 4:08am | IP Logged Quote Ayumiesan

Hello,
I finally found the solution to download mail or/and attachment.
- First step : include "ActionsBase.php" / "Actions.php" / "Service.php"
- Second step : call a new instance of Service
- Third step : create function in Service.php wich call method "AjaxMessagesGetBodies()" of "ProjectCore/Actions.php" to get Hash of message.
- Finally step : create function in Service.php wich call method "RawDownload()" of "ProjectCore/Actions.php" to launch file download.

I hope this post can help other Webmail Lite Users.
Regards,
Delphine.
Back to Top View Ayumiesan's Profile Search for other posts by Ayumiesan
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 25 March 2016 at 4:13am | IP Logged Quote Alex

Thanks!
Back to Top View Alex's Profile Search for other posts by Alex
 

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