[MGNLMAIL-93] Email can not be sent when content is a page Created: 21/Nov/17  Updated: 21/Mar/19  Resolved: 13/Mar/19

Status: Closed
Project: Magnolia Mail Module
Component/s: None
Affects Version/s: 5.4.2, 5.5, 5.5.1
Fix Version/s: 5.5.2

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Viet Nguyen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 4d 6.75h
Original Estimate: Not Specified

Attachments: PNG File confirmation-mail-sent.png     Text File stackTrace.log    
Issue Links:
Relates
relates to MGNLMAIL-99 Page content has not been processed p... Closed
causality
relation
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:
Epic Link: Support
Sprint: Features 6, Features 7
Story Points: 1

 Description   

When info.magnolia.module.mail.templates.impl.MgnlPageEmail is used (because a page is sent in an email) an exception is thrown:

Caused by: org.apache.http.ProtocolException: Target host is not specified
	at org.apache.http.impl.conn.DefaultRoutePlanner.determineRoute(DefaultRoutePlanner.java:70)
	at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:124)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:183)
	... 148 more

because when client.execute(authpost) is executed, authpost has set a relative path and it is not possible to determine the host-port-protocol for the request.



 Comments   
Comment by Viet Nguyen [ 10/Aug/18 ]

Tested and mail could be sent for this kind of mail after fixing.
Note that you need to add a property "/modules/form/templates/components/form/formProcessors/sendConfirmationEMail@enabled=true" so that confirmationEmail could be sent.

Comment by Quach Hao Thien [ 07/Mar/19 ]

Problem: Exception while sending confirm email with page as content

Steps: 

  1. Open travel/contact page, edit Form component, setup confirmation mail to send page as content
  2. Open preview mode, fill in Contact form and click send button

Stacktrace is included stackTrace.log

 

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