нашел в back-endе возможность добавлять на страницу плагин TMailForm
добавил, в результате на соответствующей странице отображается РНР ошибка:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 98304 bytes) in C:\xampplite\htdocs\website\www\typo3conf\ext\pil_ mailform\pi1\class.tx_pilmailform_pi1.php on line 750
кроме того, возник вопрос:
в форме добавления плагина необходимо заполнить поля, значения которых задаются в поле setup в тупоскрипте. зачем тогда этот скрипт? я его удалил:
Код:
plugin.tx_pilmailform_pi1 {
### General ###
testmode = 1
staticSubject = Mail from TMailform
overrideSubject = 1
userSubjectPrefix = Mail from TMailform:
typeofRecipient = 0
staticRecipient (
user1@mail.domain.tld
user2@mail.domain.tld
)
dynamicRecipient (
user1@mail.domain.tld
user2@mail.domain.tld
)
copyToUser = 2
userCopySubject = We have recieved these informations from you
template = fileadmin/template/mailform/tmail_example.tmpl
useLL = 1
LLFile = fileadmin/template/mailform/locallang_tmpl_example.xml
### Field settings ###
errorSubstitution =
requiredValues (
subject; notEmpty; text: Please fill in subject field
subject; regex:/^test.*/; text: Subject must start with "test"
message; notEmpty; text: Please fill in message field
file1; notEmpty; text: Please send file
file1; inList: image/png, text/plain; text: Filetype not allowed
user_type; notEmpty;
level; notEmpty; text: Please select level
)
defaultValues (
)
dateMarker = Y-m-d
timeMarker = H:i
### Mail header ###
fromName = Your name
fromMail = Your email
overrideFromHeader = 1
replyToName = Your name
replyToMail = Your email
overrideReplyToHeader = 1
Cc =
Bcc =
contentTransferEncoding = 0
contentType = 0
charset = utf-8
### SMTP settings ###
useMailer = 0
sendmailPath = /usr/bin/sendmail
smtpHost = localhost
smtpPort = 25
smtpAuth = 0
smtpUser = username
smtpPasswd = password
}