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
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
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?
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?)
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.
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)
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
I found this in line 394 of system/libraries/Email.php:
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.phpCode:// Add the administrator e-mail as default sender if (!strlen($this->strSender)) { $this->strSender = $GLOBALS['TL_CONFIG']['adminEmail']; $this->strSenderName = ''; }
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