wn-forms-plugin icon indicating copy to clipboard operation
wn-forms-plugin copied to clipboard

Using `mail_replyto` component property crash sending mail

Open damsfx opened this issue 3 years ago • 3 comments

  • wintercms 1.1.7
  • foms 2.0.0

If mail_replyto component property is used to refer a form field, then the mail notification result in an error : Swift_RfcComplianceException: Address in mailbox given [email] does not comply with RFC 2822, 3.6.2.

In this case I want to use the email field of my form.

When I was looking for the cause of the problem, I realised that the line https://github.com/skydiver/wn-forms-plugin/blob/805f3aff2ba4ae768d61b5fedbae913e0cf1dcf6/classes/Mails/Notification.php#L74

May be changed to $message->replyTo($this->post[$this->properties['mail_replyto']]); if we want the reply field of mail to be set.

The only workaround currently found is to remove the reply_to property from the component.

damsfx avatar Feb 18 '22 15:02 damsfx

  • wintercms 1.1.8
  • foms 2.0.0 Same issue

willouch avatar Mar 13 '22 18:03 willouch

Well still waiting for a fix.
Did #15 will be merged to close this issue?

damsfx avatar Mar 23 '22 14:03 damsfx

@skydiver ... Is this plugin still maintained?

damsfx avatar Aug 26 '22 15:08 damsfx