[Typo3] tx_thmailformplus: different recipients

Peter Niederlag niederlag at ikd01.de
Tue Mar 15 08:32:19 CET 2005


I haven't ever had a look at mailformplus so don't know about it's 

Sacha Vorbeck schrieb:
> Hi,
> I`d like to include a select-box with different recipients in my form. 
> But I can`t get it to work. Everything else works fine.
> I included this in my HTML-template:
> <select name="email_to" size="1">
> <option value="test1 at mydomain.tld"> 1. recip. </option>
> <option value="test2 at mydomain.tld"> 2. recip. </option>
> </select>
> But it doesn`t override the email-address I added to the mailform-plus 
> record in the BE. So no matter which option I choose, the form is always 
> sent to the address I specified in the backend. If I don`t add an 
> address in the field "send formular field to this email" no mails will 
> be sent at all.
> The name of the select-field should be right as it is also used in the 
> example on this page:
> http://typo3.org/documentation/document-library/th_mailformplus/General_TypoScript/ 
> Any ideas on how to solve this?

Be aware that this solution would impose some security risks. If you 
just accept a GP-Variable from outside as a email-to and then later send 
an e-mail to this adress bad guys just can use your form to mail anybody 
they want by just overrirding the GP-var "email_to".

According to manual I would think one solution would be to just set some 
values like "mail-adress-1" and "mail-adress-2" in the GP-Form and then 
use conditions to apply the recipients mailadress via Typoscript.

just an idea...!

Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
http://www.typo3partner.net * professional services network *

More information about the TYPO3-english mailing list