---
title: "Where to put TSscript for powermail / powermail_sendpost?"
url: "https://www.typo3.net/d/101402-where-to-put-tsscript-for-powermail-powermail-sendpost"
source: "typo3.net"
tags: ["Extensions","English","Frage","Powermail"]
created: "2010-09-24"
last_reply: "2010-09-24"
replies: 3
solved: false
page: 1
pages: 1
lang: "en"
---

# Where to put TSscript for powermail / powermail_sendpost?

Extensions · 3 Antworten · gestartet 2010-09-24

## Eröffnungsbeitrag

**denba** · 2010-09-24 · [Beitrag #1](https://www.typo3.net/d/101402-where-to-put-tsscript-for-powermail-powermail-sendpost/1)

Hello
I'm able to use powermail_sendpost and/or prefill some of my powermail fields only when I put the script below in the main setup of my website.

When I put this code either in the TSConfig field of the page or in the setup field of the template for this page, it dows NOT work.

I cannot imagine this is the ok to put everything in the main setup script as it becomes confused as soon as you have different form.

Could someone let me know why and what's the right way to understand this different TSConfig level (site, template, page)?
Thanks for your help.
BM

powermail_sendpost {
prefill{
uid69 = TEXT
uid69.data = hello
}

activate = 1
targetURL = <http://www.mysite.com/post.php>
useLabel = 0
# Additional POST values (like &test=1&key=value)
additionalData = TEXT
additionalData.value = &SiteID=99&FormName=myform

# change key into another value (1=>name, 2=>name, 3=>name, 23=>email)
changeKey = TEXT
changeKey.value = 24=>name, 25=>firstname, 51=>firstname, 26=>company, 28=>email, 32_1=>newsletter

# activate debug mode - shows all configurations from ts and the POST string in Frontend (0/1)
debug = 0
}
}

## Antworten

### [#2](https://www.typo3.net/d/101402-where-to-put-tsscript-for-powermail-powermail-sendpost/2) · einpraegsam.​net · 2010-09-24

This TypoScript is for the setup and not for the TSConfig.
Use an Extension Template on the page where the form is located and paste your settings in.

### [#3](https://www.typo3.net/d/101402-where-to-put-tsscript-for-powermail-powermail-sendpost/3) · denba · 2010-09-24

Thanks for your reply, I'm sure I also tried this way with no success. I just tried again, clear the cache, and this time everything is fine!

Just to learn something today: could you let me know in a few word the difference between TypoScript and TSConfig?
Thanks in advance.
BM

### [#4](https://www.typo3.net/d/101402-where-to-put-tsscript-for-powermail-powermail-sendpost/4) · einpraegsam.​net · 2010-09-24

Hi,

TSconfig is often used for backend settings (RTE, Content Elements, Page Fields etc..) while TypoScript setup is used for Frontend Plugins

Cheers, Alex

<http://typo3.org/documentation/document-library/extension-manuals/powermail_sendpost/0.4.1/view/1/4/#id2490396>

---

Quelle: „Where to put TSscript for powermail / powermail_sendpost?“, typo3.net, https://www.typo3.net/d/101402-where-to-put-tsscript-for-powermail-powermail-sendpost
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
