Setting the "From" email address with form generator
I created a form using the "form generator" and it's working fine except when the email comes in, the "from" address is I believe set to the system admin email. Is there a relatively easy way to get the "from" email address to be populated by the email field in the form, so one can just reply to the email and have it go to the person who filled out the form?
Re: Setting the "From" email address with form generator
Yes, you have two options!
- You choose the email format in the "send form as email" section. Be aware that you can only have the three fields "email", "subject" and "message".[/*:m:1juv418r]
- Install the EFG (extended form generator) extension from the repository. It extends the standard functions and for as far as I know it also adds the possibility to set the reply-to field for sent emails. (if it wasn't efg, then it was formauto ;) )[/*:m:1juv418r]
Re: Setting the "From" email address with form generator
Hi digitale,
you need to set the field value for the email field to "email" then you can reply to the emails you got from the form directly to the users email adress. And use raw data for email format.
Re: Setting the "From" email address with form generator
Planepix, is that new? Before it would not do this, I just confirmed that on an older installation. I tried the online demo but it doesn't really send out emails from the form, so hard to test if this is new functionality :(
ps, if you look withtin 50 minutes of this post: I seem to have broken the online demo, but unsure how, I only changed the forms. undo did not help either :?
Re: Setting the "From" email address with form generator
Quote:
Originally Posted by Vera
Planepix, is that new? Before it would not do this, I just confirmed that on an older installation. I tried the online demo but it doesn't really send out emails from the form, so hard to test if this is new functionality :(
ps, if you look withtin 50 minutes of this post: I seem to have broken the online demo, but unsure how, I only changed the forms. undo did not help either :?
Hi Vera, as i know not a new feature, still using this for the core form generator since a few years :D
May be the email send function is disabled in the demo?
Damn, missed much more than 50 minutes...
Re: Setting the "From" email address with form generator
I see now what it does. It sets the reply-to header which would work on most email clients. The from address is still the admin email...
Great! I didn't know TL did use the email field when using raw data, this helps a lot :)
Re: Setting the "From" email address with form generator
Hi Vera,
nice you found one more miracle :) .
When using the EFG extension you can set one or more individual sender adresses.
Re: Setting the "From" email address with form generator
I have the same problem, but i couldn't fixed with solutions which you posted before. The EFG isn't available for 2.9.1
The main problem is that I want when I get email, when form is submitted, I want that in the header is FROM person who entered the email in form.
I even change this but nothing happened.
Code:
// Set the admin e-mail as "from" address
$email->from = $GLOBALS['TL_ADMIN_EMAIL'];
$email->fromName = $GLOBALS['TL_ADMIN_NAME'];
Re: Setting the "From" email address with form generator
Re: Setting the "From" email address with form generator
To set your own e-mail is not supported by the Form Generator.
There is a trick if you selectl [ x ] Send form data via e-mail
and set the type to Data Format to "email" then the e-mail address entered becomes the REPLY to address. It won't set the FROM address.
Re: Setting the "From" email address with form generator
I want to set the email of customer which will/have filled the form. So when I received the submitted form to my email, it must be FROM customer email (input: email)
I try the data format email, but I received empty body. I've read Vera's post, where she mentioned that you must have only 3 input field, maybe here is the reason that I received empty body, because I have 5 input ?
Regards,
W.
Re: Setting the "From" email address with form generator
its not HOW many fields you have, but what the fieldnames are. Read the instructions in the HELP icon next to the control (the warning sign). This explains that you have to have:
name [text]
email [text, e-mail validation]
subject [text] (optional, overrides the subject you enter in back-end is used)
cc [checkbox] (which allows the customer to get a copy of the e-mail)
You will receive the e-mail as from your website, but when you hit reply, the customer's e-mail will be in the TO box.
Here is the tutorial
http://www.contao-factory.com/send-form-via-e-mail.html
Re: Setting the "From" email address with form generator
Thank you very much for this generous and quick help.
Re: Setting the "From" email address with form generator
First I thought that I'm making all wrong again, but than I figure it out that gmail doesn't support replay-to. In outlook its all good.
Re: Setting the "From" email address with form generator
IS there any simple solution to modify tl file, so that in the first row in message (Send form data via e-mail) will be "input" name?
Re: Setting the "From" email address with form generator
I have the same problem, but i couldn't fixed with solutions which you posted before. The EFG isn't available for 2.9.1
The main problem is that I want when I get email, when form is submitted, I want that in the header is FROM person who entered the email in form.
I even change this but nothing happened.
__________________
ps3 games download
downloadable ps3 games
Re: Setting the "From" email address with form generator
You just follow the given instruction. But as I said in gmail replay-to doesn't work for Send form data via e-mail. On outlook works.
Re: Setting the "From" email address with form generator
Quote:
Originally Posted by wotanskrieg
But as I said in gmail replay-to doesn't work for Send form data via e-mail.
Unfortunately I have to confirm this.
Quote:
Originally Posted by wotanskrieg
On outlook works.
In Thunderbird it also works