Feature #21921
closed
Log mails send via TYPO3-default mailform
Added by marvin almost 15 years ago.
Updated over 11 years ago.
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
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.
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.
If you like it, we can send it to the core list right away.
Could someone test it please, I am very, very busy at the moment. But I am happy about the patch :-)
thx @ benjamin!
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.
- Target version changed from 4.6.0 to 4.6.0-beta1
- Target version deleted (
4.6.0-beta1)
- Status changed from New to Closed
Also available in: Atom
PDF