Hallo liebe typo3 gemeinde,
Ich habe ein kleines problem mit dem anhängen von dateien an emails.
Die mailformulare an sich funktionieren, nun wollte ich noch eins machen mit anhang. Vom Prinzip ist es ja so das die datei auf den server geladen wird und dann ein link in der email zum runterladen mitgeschickt wird. Diese Datei wird auf einer bestimmten seite gespeichert welche nicht sichtbar sind.
Ok soweit so gut jedoch kommt mit meim script nun die email gar nicht mehr, geschweige denn der anhang.
hier mal mein template :
<!-- ###TEMPLATE_FORM### begin -->
###ERROR###
<form name="Formular" class="frm_questions" method="post" action="###REL_URL###" enctype="multipart/form-data">
<input type="hidden" name="id" value="###PID###" />
<input type="hidden" name="submitted" value="1" />
<input type="hidden" name="L" value="###value_L###" />
<input type="hidden" name="type" value="###value_type###" />
<label for="txtEmail">your e-mail address:*</label>
<input name="txtEmail" type="text" id="txtEmail" value="###value_txtEmail###" size="20" />
<br />
<label for="txtMessage" class="autolabel">Message:*</label>
<textarea cols="35" rows="6" name="txtMessage" id="txtMessage">###value_txtMessage###</textarea>
<br />###error_filesize######error_filetype###<input type="file" name="photo" size="50" maxlength="50000" accept="image">
<input type="submit" name="Senden" value="SUBMIT" id="Submit" class="btnSend" />
</form>
<!-- ###TEMPLATE_FORM### end -->
<!-- ###TEMPLATE_SUBMITTED_OK### begin
OPTIONAL - will be shown if form was submitted and all required fields were filled out
-->
<br /><br />
Thank you for your email.<br />
<!-- ###TEMPLATE_SUBMITTED_OK### end -->
<!-- ###TEMPLATE_EMAIL_USER### begin
OPTIONAL - this will be the email text that is sent to the user (plaintext!)
-->
<!-- ###TEMPLATE_EMAIL_USER### end -->
<!-- ###TEMPLATE_EMAIL_USER_HTML### begin
OPTIONAL - this will be the email text that is sent to the user (html!)
-->
<!-- ###TEMPLATE_EMAIL_USER_HTML### end -->
<!-- ###TEMPLATE_EMAIL_RECEIVER### begin
OPTIONAL - this will be the email text that is sent to the admin (plain)
(admin-email = the email you can specify in the mailformplus plugin)
-->
Email:
Email Address: ###value_txtEmail###
Message: ###value_txtMessage###
<!-- ###TEMPLATE_EMAIL_RECEIVER### end -->
<!-- ###TEMPLATE_EMAIL_RECEIVER_HTML### begin
OPTIONAL - this will be the email text that is sent to the admin (html)
(admin-email = the email you can specify in the mailformplus plugin)
-->
Email:<br>
Email Address: ###value_txtEmail###<br>
Message: ###value_txtMessage###<br>
uploaded files:###photo###<br>
<!-- ###TEMPLATE_EMAIL_RECEIVER_HTML### end -->
<!-- ###TEMPLATE_ERROR### begin -->
<!-- ###ERROR_START### begin
this is used for the global error marker ###ERROR###
-->
<!-- ###ERROR_START### end -->
<!-- ###ERROR_END### begin
this is used for the global error marker ###ERROR###
-->
<!-- ###ERROR_END### end -->
<!-- ###TEMPLATE_ERROR### end -->
Hier Das TS welches ich im root hinzugefügt habe:
plugin.tx_thmailformplus_pi1.saveDB = 1
plugin.tx_thmailformplus_pi1.saveDB {
dbTable = tt_content
fileUpload = uploads/attach/
fileTypes = jpg,gif,png,jpeg,pdf
# set maximum filesize to 100Kb
fileSize = 1000000
# change "96" to an existing page-ID in your TYPO3 project
dbinsert=pid:178,hidden:0,CType:textpic
# if dbkey is not set: "uid" is taken
dbkey =uid
# [inputFieldName]:[DBName]
mapping=name:header,subject:bodytext,photo:image
}
plugin.tx_thmailformplus_pi1.default.email_attachment = photo