User tests: Successful: Unsuccessful:
PHPMailer has a configurable SMTPDebug
property that allows logging of different types of messages from its internal API. Joomla doesn't change this from the default '0' (so no logging) under any condition. This PR adjusts JMail
to set this property to the highest level when JDEBUG
is true.
Apply the patch, enable debug mode, ensure the debug plugin is set to log everything (or at least messages in the 'mail' category), and do something that triggers a SMTP transaction. A more verbose set of messages should be found in the log in the 'mail' category detailing the transaction.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Shouldn't have to unless the config isn't being propagated into the SMTP class as it should. Anything calling $this->edebug()
in the PHPMailer API (mainly the SMTP and PHPMailer classes) should get proxied to the callback function we're setting in JMail's constructor.
ok i see it's inside the everything.php
log, sorry
I have tested this item successfully on dc8e150
nice feature to simplify debugging SMTP connections!
I have tested this item unsuccessfully on dc8e150
applied the patch
set the debug plugin to log everything
Set global config to use smtp
used the test email button
checked ALL logs and nothing about mail
If you can do a var_dump of $this->Debugoutput
and $this->SMTPDebug
in PHPMailer::edebug() and $this->Debugoutput
and $this->do_debug
in SMTP::edebug() that'd help verify the right settings are being set/retained. My gut feeling is something could be overriding the debug handlers if you're not getting messages in the logs, but who knows.
Maybe my issue was testing using the send test button - will try again
tomorrow
On 30 March 2016 at 22:49, andrepereiradasilva notifications@github.com
wrote:
nice feature to simplify debugging SMTP connections!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#9678 (comment)
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
I have tested this item successfully on dc8e150
Front end message on contact form : 2016-03-30T21:16:26+00:00 ERROR ::1 mail Error in JMail API: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
in everything.php log the SMTP errors and messages were found
I have tested this item successfully on dc8e150
Changed my test to successful - my issue was related to a different bug
Status | Pending | ⇒ | Ready to Commit |
RTC (the label has already added in the tracker)
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-09 14:34:37 |
Closed_By | ⇒ | wilsonge |
Labels |
Removed:
?
|
Milestone |
Added: |
Milestone |
Removed: |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Removed: |
I have Debug set to yes in global config and the debug system plugin enabled and to log all.
i get a lot of logs in the logs dir but didn't got a mail log.
Do i have to anything else?