Archived Page

You're reading an archived page of the site. The content is probably out of date. Try the homepage for more current content.

WP Mail Log

A simple plugin that, while activated, logs all calls to the wpmail() function to a file wp-content/wp\mail_log.

Please be advised, this file is probably publicly accessible on your server, and could well contain private information. This plugin is for debugging purposes only, I encourage you to delete the wp_mail_log file and deactivate the plugin once you’re finished with it.

If you have a support question, try posting a comment below.

Get the code here.

Comments

Bilgin Kılıç at 2011-06-03 07:23:38

How can I get the advantage of this plug in in order to see the possible error in my site that cause problem of sending email. I can't send the mails ( forget password, new user notification ) Please help, PS: I user WP 3.1.2 and the WP SMTP plug-in installed successfully but does not apear when I click E-Mail in the settings menu.. Regards

born26s at 2012-10-24 19:07:05

Callum; I have the WP_Mail_SMTP installed. We can send test messages, but our contact forms will not send out. I have installed your Log plugin and activated, but do not see any log file in the wp-content/plugins/wp_mail_log folder. Just the plugin file and a readme.txt. Any ideas? Thanks

Garima at 2012-05-09 12:45:58

Hi, i want to send message with in the site members.just like a social networking sites.you have the solution of this??

Callum at 2012-05-09 13:56:31

No.

Callum at 2011-06-04 10:26:26

What do you see when you click Tools > Email? You don't see the plugin admin page?

Bilgin Kılıç at 2011-06-04 11:01:39

I see nothig. just grey layout instead of smtp mail settings menu of your plugin..

Callum at 2011-06-04 11:13:11

Apologies, I think I misunderstood. Have you installed the WP Mail Log plugin? It creates a log file that you can view in the plugin editor. To be honest, it's quite technical, and so if the instructions in the plugin itself don't make sense, I recommend you try a different debugging approach. I wrote and released this plugin because it was useful to me while debugging some people's sites, but it's not something I actively support, it's really aimed at developers familiar with the WordPress stack.

Bilgin Kılıç at 2011-06-04 11:26:11

I see that :) but what about the plug-in ? why it does not work in my WP. ( it is 3.1.2 version ) http://i55.tinypic.com/fu5349.png this is screenshot

Callum at 2011-06-04 13:16:03

Not sure. I recommend checking your PHP error logs (probably the apache error log). If you can't find anything in there, try enabling error output (not sure how to do that without researching it). Try deactivating and then reactivating the plugin. If that all fails, post on the WP Mail SMTP support page here and I'll look into it further there.

Greg McEwan-Marriott at 2013-03-14 23:15:16

Hi installed both your plugins... it is writing to the log file, but what am i suppose to be looking fro in the log file? My problem is strange as your SMTP plugin sends test message no problem, secure invite plugin worx 100%, invite anyone plugin works 100%, BP Group Mail plugin worx 100% - EXCEPT no user activation or joining emails are being sent

laxman at 2012-08-06 15:34:54

any body help him

laxman at 2012-08-06 15:33:30

How can i started login System in my website ? please any body help me

Callum at 2012-10-25 12:26:05

Is that folder writable by the web server? Or put another way, can you install the plugins with the installer through the admin, or do you need to FTP upload plugins? Have you tried sending a test mail with WP Mail SMTP to see if it generates a log entry?

born26s at 2012-10-25 13:10:48

Yes, the folder is writable, I finally got a log. Not sure why it took a little bit. I will email the log to you. I installed the plug in from the admin. We are using Contact form 7 ver 3.3.1 and FormBuilder ver 0.91 (not sure why two forms). The test email goes through fine.

born26s at 2012-10-26 13:58:23

I am truly sorry to have bothered you. I ultimately found out that I had “Require Sender Authentication” set for the Exchange List. I found that issue out when I called Godaddy, and they said they saw the email going out and got a security related bounce back from the email. I removed the check from the box on the Exchange list and all is good in the world again. As my sister is fond of saying… My Bad!

Callum at 2013-03-16 22:26:16

Check if the emails that are failing are being logged. If they are not, then they're not generating a call to <code>wp_mail()</code>, that's your problem. If they are logged, maybe there's some info as to what's going wrong with them.

Sylvia Lobo at 2016-02-17 07:02:30

Hi Callum, I am facing the same issue as above, I have activated the WP Mail plugin and when I click on"Send mail" it works fine and I get the email. However when I click send on the contact form I get yellow bordered error - Failed to send your message. Please try later or contact the administrator by another method. I installed WP Mail Log and activated the plugin but cannot see any logs in wp-content\wp_mail_log folder. I am running Wordpress 4.4.2 on IIS 8.5