Project

General

Profile

Actions

Feature #21921

closed

Log mails send via TYPO3-default mailform

Added by marvin almost 15 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-01-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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

013168_v1.patch (766 Bytes) 013168_v1.patch Administrator Admin, 2010-01-08 12:11
Actions #1

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.

Actions #2

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.

Actions #3

Updated by Benni Mack almost 15 years ago

If you like it, we can send it to the core list right away.

Actions #4

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!

Actions #5

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.

Actions #6

Updated by Xavier Perseguers over 13 years ago

  • Target version changed from 4.6.0 to 4.6.0-beta1
Actions #7

Updated by Xavier Perseguers over 13 years ago

  • Target version deleted (4.6.0-beta1)
Actions #8

Updated by Stefan Galinski over 11 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF