Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

FormItAutoResponder not using fiarReplyTo or fiarFromName in email #131

Closed sonicpunk closed 4 years ago

sonicpunk commented 7 years ago

I am using FormIt Version 3.0.2-pl, MODX Version 2.5.6

Very simply, the hook sends the email to the correct recipient, but in the email header the from email and from name does not get written in the email. So the recipient cannot reply and does not know who sent the email.

sonicpunk commented 7 years ago

Here is my formIt call. All other parts of the call work fine:

[[!FormIt? &hooks=spam,email,FormItAutoResponder,mChimpXSubscribeOptIn,redirect &emailTpl=orderEmailTpl &emailSubject=Kontaktnachricht Webseite &emailFromName=[[+firstname]] [[+lastname]] &emailTo=[[++emailsender]] &redirectTo=[[++orderform_redirect]] &errTpl=error &fiarTpl=form.autoresponder.email_[[++cultureKey]] &fiarReplyTo=[[++contactform.autoresponder.emailFrom]] &fiarSubject=[[++contactform.autoresponder.subject]] &fiarReplyToName=[[++site_name]] &customValidators=requiredIf &validate=firstname:required, lastname:required, street:required, housenumber:required, zipcode:required, city:required, email:email:required, gender:required, mobile:required, dl-firstname:requiredIf=^delivery-address|^, dl-lastname:requiredIf=^delivery-address|^, dl-street:requiredIf=^delivery-address|^, dl-housenumber:requiredIf=^delivery-address|^, dl-zipcode:requiredIf=^delivery-address|^, dl-city:requiredIf=^delivery-address|^, dl-mobile:requiredIf=^delivery-address|^, dl-gender:requiredIf=^delivery-address|^ &mcOptInField=newsletter &mcApiKey=[[++mailchimp.apikey]] &mcListId=[[++mailchimp.listid]] &mcEmailField=email

                    ]]

I am using here placeholders, because each context has different subject and reply-to email.

devlanda commented 4 years ago

I could not reproduce this problem. This issue is closed.