Feature #21921
closedLog mails send via TYPO3-default mailform
0%
Description
It would be very usefull if TYPO3 could log all mails send via mailform into the database or an "mailform.log"-file.
Options like:
- enable / disable
- log to DB / log to file
- log all fields / log specific fields only
(issue imported from #M13168)
Files
Updated by Oliver Hader almost 15 years ago
That makes sense e.g. also for developing a website where only the devs should receive mails.
A solution could be to use a new method like t3lib_div::sendMail() which is just a wrapper for the PHP mail() function. In t3lib_div::sendMail() a hook or service could be placed that pre-processes the task and possibly cancels sending the mail via the PHP mail() function.
Updated by Benni Mack almost 15 years ago
Hey Olly,
there is something like this already in t3lib_div: plainMailEncoded. There is also already a sysLog message set when the sending wasn't successful. Basically, we just need to have the same call when sending the message. See the attached patch.
Updated by Benni Mack almost 15 years ago
If you like it, we can send it to the core list right away.
Updated by marvin over 14 years ago
Could someone test it please, I am very, very busy at the moment. But I am happy about the patch :-)
thx @ benjamin!
Updated by Georg Ringer over 13 years ago
- TYPO3 Version set to 4.5
IMO this can be closed as this is now possible with swiftmailer, see class.t3lib_mail_mboxtransport
a copy from core list from 29.4.2011
To ease debugging mail sending in a TYPO3 installation, it might be useful for a complete installation not really *send* mails, but just save them to a file. This RFC provides this feature, allowing the admin to configure the new transport "mbox", which saves all mails to a mbox-conformant file (simple text file, see RFC 4155). This file can be viewed with a regular text editor or a mail client which can open a "mbox" file.
Updated by Xavier Perseguers over 13 years ago
- Target version changed from 4.6.0 to 4.6.0-beta1
Updated by Xavier Perseguers over 13 years ago
- Target version deleted (
4.6.0-beta1)