[TYPO3-english] tx_form - attachment configuration
Tomasz Imbierczak
t.imbierczak at done.pl
Mon Oct 22 12:07:31 CEST 2012
I used tx_form (configuration below) and everything works except that the
file attached to an e-mail havebeen.
Can someone help me to set up this form to send e-mails with an attachment.
enctype = application/x-www-form-urlencoded
method = post
prefix = tx_form
confirmation = 0
postProcessor {
1 = mail
1 {
recipientEmail = t.imbierczak at done.pl
senderEmail = t.imbierczak at done.pl
}
}
10 = TEXTLINE
10 {
name = email
label {
value = Email
}
}
20 = TEXTLINE
20 {
name = name
label {
value = Name
}
}
30 = TEXTLINE
30 {
name = subject
label {
value = Subject
}
}
40 = FILEUPLOAD
40 {
name = upload_file
label {
value = Upload file
}
}
50 = TEXTAREA
50 {
cols = 40
name = mesage
rows = 5
label {
value = Message
}
}
60 = SUBMIT
60 {
name = 7
value = SEND
}
rules {
1 = required
1 {
breakOnError = 0
showMessage =
message = Required
error = This field is required
element = email
}
2 = email
2 {
breakOnError = 0
showMessage =
message = (john.doe at domain.com)
error = This is not a valid email address
element = email
}
}
More information about the TYPO3-english
mailing list