Updating version number to 4.2-dev after release of 4.2.0beta2a
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_formmail.php
index 1f5452a..6d44718 100644 (file)
@@ -173,7 +173,7 @@ class t3lib_formmail extends t3lib_htmlmail {
                                $theName = $_FILES[$varname]['name'];
 
                                if ($theFile && @file_exists($theFile)) {
-                                       if (filesize($theFile) < 250000)        {
+                                       if (filesize($theFile) < $GLOBALS['TYPO3_CONF_VARS']['FE']['formmailMaxAttachmentSize'])        {
                                                $this->addAttachment($theFile, $theName);
                                        }
                                }