Discussion:
[TYPO3-english] mailformplus - change mail address
Kay Obermueller
2011-11-30 16:40:53 UTC
Permalink
Hello all,
I needed to change the sender and recepient email address to send mails
to. Also other values as mandatory fields to fill in. In managed to
change these in the DB table tx_thmailformplus_main directly via SQL
statements.
But I could imagine there should be a more elegant way...
Can someone lead me to the "front door" for this task in version 4.0.15
of mailformplus and 4.5.3 of TYPO3?
Thank you in advance.

Kay
Victor Livakovsky
2011-11-30 17:48:18 UTC
Permalink
Hi, Kay.
Post by Kay Obermueller
Can someone lead me to the "front door" for this task in version 4.0.15
of mailformplus and 4.5.3 of TYPO3?
Well, you better switch to 'fromhandler' extension, which is a successor of
'mailformplus'. And it contains 'Tx_Formhandler_Finisher_Mail' class, where
you can set up needed stuff in your TS. I don't remember, if mailformplus
contains this finisher class alerady or it was added in formhandler, but you
may have a look at the source code anyway.
Reinhard Führicht
2011-11-30 18:56:20 UTC
Permalink
Hi,
Post by Victor Livakovsky
Hi, Kay.
Post by Kay Obermueller
Can someone lead me to the "front door" for this task in version 4.0.15
of mailformplus and 4.5.3 of TYPO3?
Well, you better switch to 'fromhandler' extension, which is a successor
of 'mailformplus'. And it contains 'Tx_Formhandler_Finisher_Mail' class,
where you can set up needed stuff in your TS. I don't remember, if
mailformplus contains this finisher class alerady or it was added in
formhandler, but you may have a look at the source code anyway.
as far as I remember, mailformplus allows only configuration with
TypoScript.

Example (This may not be working, but should give you a hint where to
search in the manual):

plugin.tx_thmailformplus_pi1 {

default {
email_to = admin at domain.tld
email_subject = My subject
}

}

Formhandler allows to do this configuration in TypoScript as well as in
the plugin on the page.

Regards,
Reinhard
--
http://www.typo3-formhandler.com
Kay Obermueller
2011-12-01 11:25:20 UTC
Permalink
Post by Reinhard Führicht
Hi,
Post by Victor Livakovsky
Hi, Kay.
Post by Kay Obermueller
Can someone lead me to the "front door" for this task in version 4.0.15
of mailformplus and 4.5.3 of TYPO3?
Well, you better switch to 'fromhandler' extension, which is a successor
of 'mailformplus'. And it contains 'Tx_Formhandler_Finisher_Mail' class,
where you can set up needed stuff in your TS. I don't remember, if
mailformplus contains this finisher class alerady or it was added in
formhandler, but you may have a look at the source code anyway.
as far as I remember, mailformplus allows only configuration with
TypoScript.
Example (This may not be working, but should give you a hint where to
plugin.tx_thmailformplus_pi1 {
default {
email_to = admin at domain.tld
email_subject = My subject
}
}
After trying your example I placed this:

plugin.tx_thmailformplus_pi1.default.email_to = irgend.einer at domain.de

into:

Template
- root
- Info/Modify
- E**
<https://hmh-ev.dyndns.org/typo3/test/typo3/sysext/tstemplate/ts/index.php?id=7&createExtension=0#>dit
the whole template record

But it had no effect.
Post by Reinhard Führicht
Formhandler allows to do this configuration in TypoScript as well as
in the plugin on the page.
Maybe a more suitable option to invest efforts into a newer plugin.
Nevertheless at some place also mailformplus must listen to typoscript.
But where?

Kay
Reinhard Führicht
2011-12-01 12:01:02 UTC
Permalink
Hi,
Post by Kay Obermueller
Nevertheless at some place also mailformplus must listen to typoscript.
But where?
I think it depends.
In older versions of mailformplus, there was no possibility to configure
it with TypoScript, but by inserting a configuration record on the page.
It seems that you are still using these records and that the
configuration set in such a record overrides the TypoScript
configuration. To make sure you could backup the database table and
remove the record in question.

Or you are using predefined forms. Then you would have to set the
TypoScript option for the predefined form only, not globally:

plugin.tx_thmailformplus_pi1.predef.[key_of_the_form].default.email_to =
email at example.tld

Regards,
Reinhard
Kay Obermueller
2011-12-01 15:32:35 UTC
Permalink
Post by Reinhard Führicht
Hi,
Post by Kay Obermueller
Nevertheless at some place also mailformplus must listen to typoscript.
But where?
I think it depends.
In older versions of mailformplus, there was no possibility to
configure it with TypoScript, but by inserting a configuration record
on the page.
It seems that you are still using these records and that the
configuration set in such a record overrides the TypoScript
configuration. To make sure you could backup the database table and
remove the record in question.
Or you are using predefined forms. Then you would have to set the
plugin.tx_thmailformplus_pi1.predef.[key_of_the_form].default.email_to
= email at example.tld
It's not that complicated. One has only to click around for a while like
a GUI addict to find out instead of digging in the database like a *nix
admin...
It is:
Modul:
- Liste
- In tree go to the form page
- chose mailformplus to edit

Many manuals lack screenshots for such a GUI dependent system.
Still I could not get this done with TS, I don't know where to find
"key_of_the_form".
But next time I think I should use Formhandler.

Kay

Loading...