proper From and Reply-to headers for FormBuilder

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
krajicek
New Member
New Member
Posts: 9
Joined: Mon Nov 29, 2010 2:10 pm

proper From and Reply-to headers for FormBuilder

Post 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
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: proper From and Reply-to headers for FormBuilder

Post by M@rtijn »

Maybe the information in this topic helps: http://forum.cmsmadesimple.org/viewtopi ... =7&t=26154
Make your community a better place!
krajicek
New Member
New Member
Posts: 9
Joined: Mon Nov 29, 2010 2:10 pm

Re: proper From and Reply-to headers for FormBuilder

Post 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
krajicek
New Member
New Member
Posts: 9
Joined: Mon Nov 29, 2010 2:10 pm

Re: proper From and Reply-to headers for FormBuilder

Post 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
krajicek
New Member
New Member
Posts: 9
Joined: Mon Nov 29, 2010 2:10 pm

Re: proper From and Reply-to headers for FormBuilder

Post 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
Post Reply

Return to “Modules/Add-Ons”