Project

General

Profile

Actions

Feature #22212

closed

Add proxy for the mail() function

Added by Tolleiv Nietsch about 14 years ago. Updated almost 14 years ago.

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

0%

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

Description

Currently there's no way to avoid that a installation is sending out mails. This is very unhandy in development situations where you want to check whether a system is sending mails without bothering clients with useless mail notifications.

At the moment this has to be done by modifying the local sendmail settings - the attached patch proposes a way which enables to hook into the relevant part right before the mail() command is triggered. This happens with a proxy function which is added to the t3lib_div class.

(issue imported from #M13698)


Files

sendMail.patch (3.77 KB) sendMail.patch Administrator Admin, 2010-03-01 11:46
sendMail_v2.patch (6.94 KB) sendMail_v2.patch Administrator Admin, 2010-03-05 17:57
13698_tests.diff (3.31 KB) 13698_tests.diff Administrator Admin, 2010-04-13 21:22

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #22447: When sending mail, use TYPO3_CONF_VAR for default from address if no other address is providedClosedJeff Segars2010-04-14

Actions
Related to TYPO3 Core - Bug #22253: TYPO3's plain mails should use the proper encoding settingsClosed2010-03-08

Actions
Actions #1

Updated by Benni Mack about 14 years ago

Hey Tolleiv,

great idea. However, I think the t3lib_div::plainMailEncoded is already a proxy. What I could imagine would be to use this method all over the place and also use it to add an alternative mailing engine (SMTP :)) to it with the same way you have in your sendMail method.

What do you think?

Actions #2

Updated by Tolleiv Nietsch about 14 years ago

Hm ok - I'll try to bring up a patch for that, but I don't fully agree that t3lib_div::plainMailEncoded() already is what we're looking for since it does far too much work than "just" proxy mail()

Actions #3

Updated by Tolleiv Nietsch about 14 years ago

Hi - seems that it isn't that easy to use plainMailEncoded() as proxy for t3lib_htmlmail() - I posted a request in the typo3.dev group - maybe we could discuss it there...

Actions #4

Updated by Benni Mack about 14 years ago

Hey Tolleiv,

well, maybe we can have a different solution to is close to your existing one. let's talk the next few days through skype to define this. k?

Actions #5

Updated by Tolleiv Nietsch about 14 years ago

Hi Benni - yes - nice plan - ttyl

Actions #6

Updated by Ralf Hettinger about 14 years ago

Hi guys!

I'm really looking forward to the outcome of this one ... and while you're at it, would you think that solving #19243 could be a good idea? I know, this is kind of subversively hijacking (shame on me & I'm sorry), but hey - you're touching the relevant pieces of code anyways... :)

Actions #7

Updated by Steffen Kamper about 14 years ago

committed to trunk rev 7349

Actions

Also available in: Atom PDF