We'll create fresh WordPress site with Mail logging – WP Mail Catcher installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Logging your mail will stop you from ever losing your emails again! This fast, lightweight plugin (under 140kb in size!) is also useful for debugging or backing up your messages.
Just install and activate then all of your contact form emails will be logged and saved to your DB with no additional configuration required.
View and manage all your form submissions through the default WordPress interface. An email failed to send? With a single click you can resend the backed up email.
Send emails out directly from the WordPress interface. Also includes support for attachments.
Immediately find out if your contact form submission was successfully sent.
wp_mail_catcher_mail_success
is triggered when a message is sent and logged successfully. It has a single argument that is an array containing the log
id
related to the id in the mail_catcher_logs
MySQL tabletime
relative, readable time to when the log was savedemail_to
the email address(es) that the message was sent tosubject
the subject line of the messagemessage
the contents of the messagestatus
an integer depicting if the message was sent successfully or not (1 = sent successfully. 0 = sending failed)error
the error that occurred – if anybacktrace_segment
a json_encoded object that shows which file and line the mail was initially triggered fromattachments
a list of any attachments that were sent along with the emailadditional_headers
a list of any headers that were sentattachment_file_paths
a list of the location of any attachments that were senttimestamp
a unix timestamp of when the email was sentis_html
a boolean, that will be true if the message is a html email and false if notemail_from
the from value of the emailwp_mail_catcher_mail_failed
is triggered when a message failed to send and logged successfully. It has a single argument that is an array containing the log (same as the arguments for wp_mail_catcher_mail_success
)wp_mail_catcher_deletion_intervals
is a filter that should return an array where each key is an amount of time in seconds, and the value is the label. Used to determine when a message has expired and should be deleted