Page 1 of 1

proper From and Reply-to headers for FormBuilder

Posted: Thu Nov 24, 2011 3:39 pm
by krajicek
Hi,

i have a website based on cmsms ver 1.9.4.3 "Faanui" with FormBuilder ver 0.7

there on the website is contact form - more less standard fields (name, phone, email, enquiry + captcha)

i spent few hours unfortunately with no outcome digging here on the forum, asking uncle google and trying various fields setups in FormBuilder

what i want to achieve is:

form submission is sent to site owner (currently usign "*Email Results to set Address(es)" field for this) and to person submitting the form = customer (currently using "*Email "From Address" Field, and send copy" field)

i'd like to have:
- site owners message with From or Reply-to headers set to "Customers Name" <customers email> with values collected via form. However From header can have alternatively values as set in form e.g. "SiteOwners Name" <siteowners email> if Reply-to is set correctly as per above

- customer's message with From or Reply-to headers set to "SiteOwners Name" <siteowners email>. From header can alternatively have value "Customers Name" <customers email> if Reply-to is set properly as per 1st sentence of this para

i hope you get what i'm trying to achieve ;)
simply to allow site owner and customer as well by hitting Reply button in email client to get correct address into To field without the need to copy & paste email address from message body

can you please let me know if described scenario is possible and what combination of form fields to use to achieve it.

thank you in advance
krajicek

Re: proper From and Reply-to headers for FormBuilder

Posted: Fri Nov 25, 2011 5:57 pm
by M@rtijn
Maybe the information in this topic helps: http://forum.cmsmadesimple.org/viewtopi ... =7&t=26154

Re: proper From and Reply-to headers for FormBuilder

Posted: Mon Nov 28, 2011 11:30 am
by krajicek
M@rtijn wrote:Maybe the information in this topic helps: http://forum.cmsmadesimple.org/viewtopi ... =7&t=26154
Thank you, M@rtijn,

read that thread before i posted mine because it doesn't solve my problem.

my settings:

*Email "From Address" Field, and send copy
"From name" for email: Site Owner
Send User a Copy of Submission? Always
Which email headers should this input populate: "Reply-To"

*Email Results to set Address(es)
"From name" for email: Site Owner
"From address" for email: siteowner@mydomain.com
Destination Email Address: siteowner@mydomain.com

with above settings messages are delivered:

message received by customer (who submitted the form):
from via <smtp server address >
reply-to Site Owner <customer's email address collected via form>
to <customer's email address collected via form>

message received by Site Owner:
from Site Owner <siteowner@mydomain.com>
reply-to Site Owner <customer's email address collected via form>
to <siteowner@mydomain.com>

as you can see there is mess with "From name" being used for both site owner and customer
i tried to use also Email "From Name" Field but this overwritten both customer's and site owners's from names

Re: proper From and Reply-to headers for FormBuilder

Posted: Thu Dec 01, 2011 2:57 pm
by krajicek
tried another change

i used Email "From Name" Field to capture customer's name.

but now message headers look like this:

message received by customer (who submitted the form):
from Customer Name <>
reply-to Customer Name <customer's email address collected via form>
to <customer's email address collected via form>

message received by Site Owner:
from Customer Name <siteowner@mydomain.com>
reply-to Customer Name <customer's email address collected via form>
to <siteowner@mydomain.com>

which apparently is not what i wanted :(

any nudge the right direction?
thanks in advance

Re: proper From and Reply-to headers for FormBuilder

Posted: Thu Dec 01, 2011 3:46 pm
by krajicek
partial success achieved

if i set Email "From Name" Field to populate Reply-to address only then site owner's message headers are oke although customers message is still incorrect:

message received by customer (who submitted the form):
from Customer Name <>
reply-to Customer Name <customer's email address collected via form>
to <customer's email address collected via form>

message received by Site Owner:
from Site Owner <siteowner@mydomain.com>
reply-to Customer Name <customer's email address collected via form>
to <siteowner@mydomain.com>

krajicek