[MGNLMAIL-46] Sending magnolia pages as html email fails if command used in workflows Created: 03/Apr/09  Updated: 01/Sep/14  Resolved: 01/Sep/14

Status: Closed
Project: Magnolia Mail Module
Component/s: Backend
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Olivier Marti Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File error.log    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

As I tried to send a page as an html mail upon activation from withing the workflow it's failing with the attached error.
The corresponding part of the workflow definition looks like this:

<set field="from" value="admin@magnolia-cms.com"/>
<set field="to" value="olivier.marti@magnolia-cms.com"/>
<set field="subject" value="Test"/>
<set field="contentType" value="html"/>
<set field="templateFile" value="http://localhost:8080/demo-project/news_and_events/events/new-year-s-eve.html"/>
<set field="type" value="magnolia"/>  
<participant ref="command-sendMail"/>


 Comments   
Comment by Philipp Bärfuss [ 15/Apr/09 ]

The context path is not available from the current context as the context is a not a web context but a workflow context.

Generated at Mon Feb 12 06:03:05 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.