powermail icon indicating copy to clipboard operation
powermail copied to clipboard

Left angle bracket in input field with sender name breaks mail to sender and receiver

Open Patta opened this issue 1 year ago • 2 comments

TYPO3 11.5.25 powermail 10.7.2 composer mode PHP 7.4.33

Left angle bracket in input field with sender name breaks mail to sender and receiver.


Scenario one - simple contact form with one field for sender name:

Form with field of type input and selected option sender_name for this text field. (default Input.html partial from vendor)

Example user input in this field: Peter<

Warning log: Thu, 06 Apr 2023 15:22:10 +0200 [CRITICAL] request="b4c05f3688d57" component="In2code.Powermail.Controller.FormController": Mail could not be sent - ["Email " <[email protected]" does not comply with addr-spec of RFC 2822."]


Scenario two - simple contact form with two fields for sender name:

Form with two fields of type input and selected options sender_name for this two text fields. (default Input.html partial from vendor)

Example user input in field one: Peter<

Example user input in field two: Griffin

Warning log: Thu, 06 Apr 2023 15:30:35 +0200 [CRITICAL] request="6de6e0933c2c7" component="In2code.Powermail.Controller.FormController": Mail could not be sent - ["Email " Griffin <[email protected]" does not comply with addr-spec of RFC 2822."]

Patta avatar Apr 06 '23 13:04 Patta