Results 1 to 18 of 18

Thread: Setting the "From" email address with form generator

  1. #1
    New user
    Join Date
    04-13-10.
    Posts
    9

    Default 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?

  2. #2
    User
    Join Date
    06-29-09.
    Posts
    271

    Default Re: Setting the "From" email address with form generator

    Yes, you have two options!
    1. 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]
    2. 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]

  3. #3
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default 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.
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  4. #4
    User
    Join Date
    06-29-09.
    Posts
    271

    Default 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 :?

  5. #5
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default 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...
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  6. #6
    User
    Join Date
    06-29-09.
    Posts
    271

    Default 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

  7. #7
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default 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.
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  8. #8

    Default 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'];
    Web design agency - EDsolution.si Izdelava spletnih strani

  9. #9

    Default Re: Setting the "From" email address with form generator

    HHHelp me, please
    Web design agency - EDsolution.si Izdelava spletnih strani

  10. #10
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

  11. #11

    Default 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.
    Web design agency - EDsolution.si Izdelava spletnih strani

  12. #12
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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

  13. #13

    Default Re: Setting the "From" email address with form generator

    Thank you very much for this generous and quick help.
    Web design agency - EDsolution.si Izdelava spletnih strani

  14. #14

    Default 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.
    Web design agency - EDsolution.si Izdelava spletnih strani

  15. #15

    Default 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?
    Web design agency - EDsolution.si Izdelava spletnih strani

  16. #16
    New user
    Join Date
    09-24-10.
    Posts
    2

    Default 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

  17. #17

    Default 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.
    Web design agency - EDsolution.si Izdelava spletnih strani

  18. #18
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default 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
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •