Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outbound Mail endpoint prototype #456

Closed
teosarca opened this issue Jun 13, 2017 · 4 comments
Closed

Outbound Mail endpoint prototype #456

teosarca opened this issue Jun 13, 2017 · 4 comments

Comments

@teosarca
Copy link
Member

teosarca commented Jun 13, 2017

Prototype outbound email endpoint for metasfresh/metasfresh-webui-frontend-legacy#836

Note to IT

  • full regression test on Swing EMail sending is needed (also open it from different documents)
  • full regression test on text templates is needed
  • besides those regression tests, pls test the frontend task
teosarca added a commit that referenced this issue Jun 13, 2017
metas-ts added a commit to metasfresh/metasfresh that referenced this issue Jun 14, 2017
[#878](metasfresh/metasfresh-webui-frontend-legacy#878) Error firework when logout
[#880](metasfresh/metasfresh-webui-frontend-legacy#880) Change Icon for URL Link
[#881](metasfresh/metasfresh-webui-frontend-legacy#881) Error when pressing Action Menu in Collapsible Grid Window
[#883](metasfresh/metasfresh-webui-frontend-legacy#883) hu editor doesn't update
[#451](metasfresh/metasfresh-webui-api-legacy#451) Provide view sticky filters to be displayed by frontend
[#456](metasfresh/metasfresh-webui-api-legacy#456) Outbound Mail endpoint prototype
[#1807](#1807) Fix "Create primary key" process
[#879](metasfresh/metasfresh-webui-frontend-legacy#879) Avatar Picture not deleted from Header when cleared in Profile Settings
[#1802](#1802) picking terminal is not opening
[#436](metasfresh/metasfresh-webui-api-legacy#436) Manufacturing Order Issue not possible after barcode filtering
[#453](metasfresh/metasfresh-webui-api-legacy#453) Password process parameters shall allow showing the password
[#849](metasfresh/metasfresh-webui-frontend-legacy#849) manufacturing order doesn't open
[#437](metasfresh/metasfresh-webui-api-legacy#437) Load/ Reload of delivery Days window takes too long.
[#446](metasfresh/metasfresh-webui-api-legacy#446) Cannot open the menu when logged in as System Administrator
[#433](metasfresh/metasfresh-webui-api-legacy#433) Show Manufacturing Order number in window header
[#1793](#1793) fix jasper document for vendor returns
[#848](metasfresh/metasfresh-webui-frontend-legacy#848) notifications don't update
[#400](metasfresh/metasfresh-webui-api-legacy#400) minimum password length error message not displayed
[#444](metasfresh/metasfresh-webui-api-legacy#444) Make Dashboard Translatable
[#447](metasfresh/metasfresh-webui-api-legacy#447) Truncate WEBUI_ViewSelection tables on startup
[#847](metasfresh/metasfresh-webui-frontend-legacy#847) Loading of empty delivery Days Window take long
[#1735](#1735) istransferwhennull not working in webUI but in java client
[#1748](#1748) Project Documentation: Screenshots
[#795](metasfresh/metasfresh-webui-frontend-legacy#795) On tab stale event, don't refresh tabs which are queryOnLoad but are not the active tab

me-45
teosarca added a commit that referenced this issue Jun 14, 2017
what's not implemented it's mocked on server side

#456
@teosarca
Copy link
Member Author

teosarca commented Jun 14, 2017

API changes (please check swagger for details)

  • /mail/templates endpoint which returns a list of key/value templates which user can pick from a dropdown and apply them to current email
  • to apply a given template you shall use the regular PATCH operation with path="templateId", value={ templateId : templateName }

API is ready for frontend implementation

teosarca added a commit to metasfresh/metasfresh that referenced this issue Jun 15, 2017
teosarca added a commit to metasfresh/metasfresh that referenced this issue Jun 15, 2017
teosarca added a commit that referenced this issue Jun 15, 2017
teosarca added a commit that referenced this issue Jun 15, 2017
teosarca added a commit that referenced this issue Jun 16, 2017
teosarca added a commit that referenced this issue Jun 16, 2017
It seems JRebel, lately, it's creating some jars in project folder.

#456
teosarca added a commit to metasfresh/metasfresh that referenced this issue Jun 16, 2017
teosarca added a commit to metasfresh/metasfresh that referenced this issue Jun 16, 2017
teosarca added a commit that referenced this issue Jun 16, 2017
@teosarca
Copy link
Member Author

Changed the mail configuration on w101:

update AD_SysCOnfig set Value='-' where name='org.adempiere.user.api.IUserBL.DebugMailTo';
update AD_Client set SMTPHost='localhost', IsSmtpAuthorization='N' where AD_Client_ID in (0, 1000000);
update AD_User set EMail='it@w101.metasfresh.com' where AD_User_ID=2188223;
/*
select name, value from AD_SysCOnfig where name='org.adempiere.user.api.IUserBL.DebugMailTo';
select AD_Client_ID, SMTPHost, IsSmtpAuthorization from AD_Client;
select AD_User_ID, login, Email from AD_User where Login='it';
select * from AD_MailBox;
*/

@teosarca
Copy link
Member Author

Tested on w101, using only the mail API:

  1. Create a new email for current user, having C_Order_ID=1005626 in context
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "documentPath": { "windowId":143, "documentId": 1005626} \ 
 }' 'http://w101.metasfresh.com:8081/rest/api/mail'
  1. Send the email (assuming mandatory email fields like To was filled automatically on previous request).
    Also assuming the emailId returned on previous call is 1".
curl -X POST --header 'Content-Type: application/json' --header 'Accept: */*' 'http://w101.metasfresh.com:8081/rest/api/mail/1/send'

@metas-rc
Copy link
Member

To be tested together with metasfresh/metasfresh-webui-frontend-legacy#836 when it is finished as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants