I’ve a formit form on my website. I want the following to happen:
- Form is sent using SMTP from Google apps e-mailadress as configured in MODx System Settings. (
[email protected] in the codes below)
- From this Google apps e-mailaccount an autoreply is sent to the person who filled in the form, to the e-mailadress that person has filled in.(
[email protected] in the codes below).
Everything works, except the auto reply from the google apps account is sent to the google apps address (the ’SMTP user’) instead of the e-mailadress of the site visitor.
This is my formit call:
[[!FormIt?
&hooks=`spam,FormItAutoResponder,email,redirect`
&store=`1`
&emailTpl=`contactformulierEmailTpl`
&emailTo=`[email protected]`
&emailFrom=`[[+E-mailadres]]`
&emailFromName=`[[+Naam]]`
&emailReplyTo=`[[+E-mailadres]]`
&emailReplyToName=`[[+Naam]]`
&redirectTo=`22`
&submitVar=`submitContact`
&emailSubject=`Reactie via contactformulier`
&fiarTpl=`autoResponderTpl`
&fiarSubject=`Kopie van uw ingestuurde contactformulier`
&fiarToField=`E-mailadres`
&fiarFrom=`[email protected]`
&fiarFromName=`Company`
&fiarReplyTo=`[email protected]`
&fiarReplyToName=`Company`
&customValidators=`FormItValidator`
&validate=`Naam:required:FormItValidator:stripTags, E-mailadres:required:email:FormItValidator:stripTags, Bericht:required:FormItValidator:stripTags`
]]
MODx System Settings:
In the e-mail that is sent to the google apps account the following headers are included:
The reason the auto reply is sent to the google apps account, is probably because of this line: From: Visitor Name <
[email protected]>
The name that is filled in the form is placed here correctly, but the wrong e-mailadress is used (not the ’Emailfrom’ that is set in the formit snippet call, but the SMTP user from the MODx System Settings).
Also ’Return-path’ turns up twice in the header, first with
[email protected], and second with the e-mailadress of the visitor.
I hope someone can point me in the right direction as to why the e-mailadress of the visitor is not used in the From e-mailadress. Could it be something that Google does when sending with Google’s SMTP? Thanks for any help.
I’m using:
- Revolution 2.0.6-pl2
- Formit 1.5.2-pl