Results 1 to 8 of 8

Thread: Forms sending with different sender

  1. #1
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default Forms sending with different sender

    Hi all,

    I use a couple of forms, but every e-mail populated by every form has the same sender (probably the email from admin).

    Can I change the sender per form? I cannot find where to do that.

    Thanks,
    Paul

  2. #2
    New user
    Join Date
    01-25-10.
    Location
    Born, Netherlands
    Posts
    5

    Default Re: Forms sending with different sender

    Just use the field name "email" in the e-mail text field and the sender's e-mail address should be displayed, or do I misunderstand what you are trying to achieve?

  3. #3
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default Re: Forms sending with different sender

    Hi Frank,

    I think that you understood me correctly.... I want the sender to be anything other than the admin. But I talk about the sender in the header of the email.

    In the form there is a field called email, but that is in the body of the sent email, not in the header...

    I mean:

    From: <variable name instead of admin>
    To: adressee in the form header
    Subject: also in the form header

    yabba yabba yabba

    BTW, you look familiar to me.... Do I know you (from CMG perhaps?)

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    89

    Default Re: Forms sending with different sender

    Here's another forum that may help: viewtopic.php?f=4&t=1082

    I think the answer is to check the extensions. I'm pretty sure something has been built that lets you choose the submitted email as the sender. I hope that helps.

  5. #5
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Forms sending with different sender

    I don't believe you can, although this would be pretty handy.
    Maybe setting the reply to address where you set a recipient address in the Form Generator.


    I'd suggest you request this as a feature request in the ticket system outlining the reason it would be handy (be sure to search the tickets first to see if anyone else has requested it)

  6. #6
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default Re: Forms sending with different sender

    Hi Ramjet,

    I think you are right.... I'll check the feature requests (although I cannot look through all the German requests...;-)

    I think this would be a good feature as well

    thx
    Paul

  7. #7
    User
    Join Date
    10-05-09.
    Location
    Dallas, TX, US
    Posts
    70

    Default Re: Forms sending with different sender

    I found this in line 394 of system/libraries/Email.php:

    Code:
    // Add the administrator e-mail as default sender
    if (!strlen($this->strSender))
    {
    	$this->strSender = $GLOBALS['TL_CONFIG']['adminEmail'];
    	$this->strSenderName = '';
    }
    It's probably a bad idea to override this entirely, but it may give you a starting point. It seems like you can set "strSender" somewhere in the front-end, which is then used in place of the default admin email. Where exactly it's defined, I'm not sure; I only found references to it in Email.php

  8. #8
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default Re: Forms sending with different sender

    Hi Mark,

    Well, I can use this to get what I want, but I think it would be better if it was changeable from within TL.

    Maybe I can find where strSender can be set....

    Otherwise, I think I'll change is to
    // Add the no-reply e-mail as default sender
    if (!strlen($this->strSender))
    {
    $this->strSender = 'noreply@mydomain.com';
    $this->strSenderName = 'My Domain';
    }

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
  •