|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69859 imap_mail does not log
Submitted: 2015-06-17 08:18 UTC Modified: 2018-03-13 16:36 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: petr at jisa dot eu Assigned:
Status: Open Package: IMAP related
PHP Version: 5.6.10 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
11 + 48 = ?
Subscribe to this entry?

 [2015-06-17 08:18 UTC] petr at jisa dot eu
common mail() fce has logging support configurable by php.ini. It can log to file or syslog.

but imap_mail() doesn't provide any logging. Just silently send the email.

Test script:
imap_mail("","Test","Test mail");

Expected result:
imap_mail() should respect INI settings

Actual result:
- doesn't log (mail.log)
- doesn't include uid/script to mail header (mail.add_x_header)

Affected all latest PHP 5.x versions


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-13 16:36 UTC]
-Package: Mail related +Package: IMAP related
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Sep 30 10:01:23 2020 UTC