Skip to content
Advertisement

TYPO3 tx_form copy to sender (recipient copy)

I’ve been searching the internet for hours, checked the TYPO3 documentation, TS reference and so on, but didn’t find any hint how to get the TYPO3 6.2 standard form to send a copy to the initial sender of the form.

Maybe it just isn’t possible because of the danger of someone sending SPAM to any email addres using this form? I think in combination with a good SPAM filter this should be a manageable thread, and besides, every submitted form will also be sent to the website owner who can intervenate and shut down the form if anything bad happens.

In the old versions of TYPO3 in the standard form it was possible:

| recipient_copy=hidden | copy@email.com

So, I look for something like this:

enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 
postProcessor {
    1 = mail
    1 {
        recipientEmail = receipient@mail.com
        recipientEmailCopyField = field_from_mailform //doesn't exist, but im looking for something like this
        senderEmail = webmaster@website.com
        subject = Lorem Ipsum
        messages {
            success = TEXT
            success {
                value = <p>Lorem ipsum dolor sit amet.</p>
            }
        }
    }
}

Thanks in advance!

Advertisement

Answer

I know this is not a direct answer to your Question, but I recomment to not use the system extension form, but a more established extension like e.g. powermail2 or formhandler.

UPDATE:

While the former was my recommendation for TYPO3 6.2 I would gladly point to the comment below from Björn:

With TYPO3 7 LTS the system extension “form” received a major improvement. Most parts of the extension were rewriten and are now based on extbase and fluid. The mail postProcessor is now complettely stdWrap-able and you can do something as proposed over here: http://forge.typo3.org/issues/32950#note-15. In TYPO3 8 the development of form will continue.

So for most task the sysext form should now be suitable.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement