
內容簡介
這個 WordPress 外掛能夠記錄你的郵件,讓你不再有遺失郵件的困擾!這個快速、輕量級的外掛(不到 140kb)也可以用於調試或備份你的訊息。
只需安裝和啟用,所有與聯繫表單相關的郵件將被記錄並保存到你的資料庫中,不需要其他設置。
通過 WordPress 的默認界面查看和管理所有的表單提交。遇到發送郵件失敗的情況?只需要點擊一次,就可以重新發送備份的郵件。
從 WordPress 介面直接發送郵件,支持附件。
立即得知你的聯繫表單提交是否成功發送。
功能
零設置 – 安裝即可使用
極簡主義 – 沒有用不到的臃腫功能,不會增加你的網站負擔 – 大小不到 140kb!
批量導出郵件到 CSV,方便在 Excel 或任何其他程式中包含
使用 WordPress 熟悉的控制面板編寫新郵件
批量重新發送郵件
調試 – 看到發送郵件的哪個檔案和代碼行,以及遇到的任何錯誤
管理使用者權限可以查看的日誌
定期清理日誌 – 或者一直保存
當發送郵件出現問題時需要通知?我們有允許你這樣做的引子
完全免費
引子和操作
wp_mail_catcher_mail_success 在成功發送和記錄郵件時觸發。它有一個參數,是一個包含日誌的數組
id 關聯 mail_catcher_logs MySQL 資料表中的 id
time 相對、易讀的日誌存留時間
email_to 郵件發給的電子信箱
subject 郵件主題
message 郵件內容
status 表示郵件是否成功發送的整數(1 = 發送成功、0 = 發送失敗)
error 發生的錯誤 – 如果有的話
backtrace_segment 顯示初始觸發郵件的檔案及行號的 json 編碼對象
attachments 發送的任何附件列表
additional_headers 發送的任何標頭列表
attachment_file_paths 發送附件的位置列表
timestamp 郵件發送的 Unix 時間戳記
is_html 如果郵件是 HTML 郵件,則為 true;如果不是則為 false 的布林值
email_from 郵件的寄件者
wp_mail_catcher_mail_failed 在郵件發送失敗並成功記錄時觸發。它有一個參數,是一個包含日誌的數組(和 wp_mail_catcher_mail_success 的參數一樣)
wp_mail_catcher_deletion_intervals 是一個過濾器,應該返回一個數組,其中每個鍵是時間量(以秒為單位),值是標籤。用於確定郵件何時過期並應該被刪除
外掛標籤
開發者團隊
② 後台搜尋「Mail logging – WP Mail Catcher」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
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.
Features
Zero setup required – just install and away you go
Minimalistic – no overbloated features you never use weighing your site down – under 140kb in size!
Bulk export emails to CSV for easy inclusion into Excel or any other program
Compose new emails with the WordPress controls you’re already familiar with
Resend your emails in bulk
Debugging – see exactly which file and code line was responsible for sending the email, along with any errors encountered
Manage what user permissions can see the logs
Routinely have your logs cleared out at a specified time – or keep them forever
Need to be notified when there’s a problem sending your mail? We’ve got hooks that allow you to do just that
Completely free
Hooks and actions
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 table
time relative, readable time to when the log was saved
email_to the email address(es) that the message was sent to
subject the subject line of the message
message the contents of the message
status an integer depicting if the message was sent successfully or not (1 = sent successfully. 0 = sending failed)
error the error that occurred – if any
backtrace_segment a json_encoded object that shows which file and line the mail was initially triggered from
attachments a list of any attachments that were sent along with the email
additional_headers a list of any headers that were sent
attachment_file_paths a list of the location of any attachments that were sent
timestamp a unix timestamp of when the email was sent
is_html a boolean, that will be true if the message is a html email and false if not
email_from the from value of the email
wp_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
wp_mail_catcher_before_success_log_save is a filter that is called just before a successful log is saved. It has a single argument that is the transformed log that will be saved – use this to alter the log before it’s saved. Returning false will stop the log from being saved. Also note that this is fired even when an email has errored, because all logs are initially saved as “successful” before being possibly updated with an error (if applicable). This is because of the way the wp_mail and wp_mail_failed are implemented in WordPress.
time a unix timestamp of when the email was sent
email_to the email address(es) that the message was sent to
subject the subject line of the message
message the contents of the message
backtrace_segment an array that shows which file and line the mail was initially triggered from
wp_mail_catcher_before_error_log_save
time a unix timestamp of when the email was sent
email_to the email address(es) that the message was sent to
subject the subject line of the message
message the contents of the message
backtrace_segment an array that shows which file and line the mail was initially triggered from
error the error that occurred
