Forums

Dynamic from email address

penny 20 May, 2016
Hi.
When my contact form is submitted and I receive an email, how do I set it up so the FROM email address is the users email address that he has entered?
I am trying to follow this information http://www.chronoengine.com/faqs/57-cfv4/cfv4-actions/2643-how-to-send-an-email-dynamically.html
But my form does not have a spot for the user to check of an "Email Notification" do I require this to be able to send dynamically? If so, can I show how set it up to be hidden and always set?

Thanks
Penny
GreyHead 20 May, 2016
Hi Penny,

There is an Advanced tab in the Email action with a Dynamic To box where you can enter the name of the email i put in your form (with no quotes or brackets).

Bob
penny 20 May, 2016
Hi,
I know I am missing, something really simple here..

This is my form
[option] => com_chronoforms5
[chronoform] => Contact
[event] => submit
[text1] => Penny
[text2] => Durocher
[text3] => tes@tes.com
[text4] => 7801234567
[textarea7] => test
[recaptcha_challenge_field] => 03AHJ_VusT8PFkEN00mryRJ-Jysqyg2wmhz-IEw0YkkbSbdBJT29ug3IM_Ic9s7Y31inEuM2pmk_iMiXtY2ZeHsCSmmKLJ6ZxSicIGcfNCuEI8WCpWAgEwTLQcQZVAongNpHMP0L8jaX3Xv9qgKLPcIH_WkPPlLzD8aixgcc2aVO5gVIDFuhwmtCoj_LkyD4ABjm2-toLHf5Ct
[recaptcha_response_field] => 264
[checkbox12] => 1
[button8] => Submit

so I have text3 in the dynamic to, but when I receive the form the from email address is the email address that I set in the from email in the basic tab.

What am I missing here?
Thanks
Penny
penny 20 May, 2016
Sorry. My screen shot says that it is text1, but it is in fact text3 that I have sent in my form.
penny 20 May, 2016
In my email I get the
TO: myemailaddressfromtheform & myadminemailaddress
but the FROM: is still the admin email address.
and I have put in the dynamic fields my text3
GreyHead 21 May, 2016
Hi Penny,

I'm sorry, I replied late at night and got 'to' and 'from' mixed up.

There are Dynamic From Name and From Email boxes too but I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.

Bob
penny 24 May, 2016
Hi,
The reason for this so that when someone fills out the form it is easier to hit reply in the email and reply directly to them, also for search and reference later in the emails. We had the emails working this way before switch to the Chronoforms component, and did not have an issue with spam. Either way this is a clients request and would like it to work this way. Any documentation on it would be greatly appreciated.

Penny
GreyHead 24 May, 2016
Hi Penny,

Please check my previous post - I told you how to do it there.

Note that the problem with Dynamic From is not that you will receive spam but that the emails you send from your form may be marked as spam because the From domain does not match the sending domain.

Bob
penny 24 May, 2016
Hmm.
I must be missing something..
Previous post

"Hi Penny,

I'm sorry, I replied late at night and got 'to' and 'from' mixed up.

There are Dynamic From Name and From Email boxes too but I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.

Bob"



Doesn't actually say how to use them... Do I need to have extra code somewhere? Am I placing them correctly in the fields? I am using text3 - which is my field name is this the correct one to use? Does the field name need to be unique and different then the field ID?

As I mentioned above I have the text3 in my Dynamic From and To fields but the email shows up from the admin email set in the basic tab still.
If I remove the admin email from the "From Email" in my basic tab then the email comes from Root User
GreyHead 24 May, 2016
Hi Penny,

You would need to have text3 with no quotes or brackets in the Dynamic From Email box. You will also need some value set for the Dynamic From Name, for testing you could just use the Last Name input.

Bob
This topic is locked and no more replies can be posted.