kaystrobach / TYPO3.powermail2document

0 stars 0 forks source link

No Mail Attachment, when there is no file to send. #2

Closed Ralphle closed 10 years ago

Ralphle commented 10 years ago

If there is no file uploaded, there should also no E-Mail-Attachment. Get rid of the default file. powermail 1.6.10 powermail2document 1.6.1 TYPO3_VERSION: 4.7.14 PHP_VERSION : 5.3.8

kaystrobach commented 10 years ago

which type of file do you create normally and attach? :D

Ralphle commented 10 years ago

mainly CSV. My approach (54 - 57 SubmitEmailHook2.php):

} else { return; /* $helper = t3lib_div::makeInstance('Tx_Powermail2document_FileTypes_UnknownFileEnding'); */ }

works for me. could be more sophisticated..... :-)

kaystrobach commented 10 years ago

perhaps the fluid fileending + dynamic rename is a nice addition :D, if i remember right it's supported out of the box

Ralphle commented 10 years ago

Yep - i will have an eye on it.... - Thanx