前言介紹
- 這款 WordPress 外掛「All Path Messaging」是 2024-10-14 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2024-10-27,距離現在已有 189 天。
- 外掛最低要求 WordPress 4.4 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
souptik |
外掛標籤
sms | email | messaging | push notification |
內容簡介
總結:
這個 WordPress 外掛提供了無限通訊功能,讓你在一個方案中處理郵件、簡訊和推播通知。你可以輕鬆取得多種預先設置的服務提供商,或者自行開發插件以實現自定義通訊功能。
問題與答案:
1. 這個 WordPress 外掛提供了哪些通訊方式?
- 郵件、簡訊和推播通知。
2. 如果我不想使用預設的簡訊服務提供商,該外掛預設提供了哪些服務提供商?
- 外掛提供了多種預先實現的提供商供你選擇。
3. 如果我想使用一個不常見的電子郵件提供商該怎麼辦?
- 作為開發者,只需編寫自己的插件並實現自己的適配器,就能與 WordPress 消息功能輕鬆連接。可參考相應的部分以實施適配器。
原文外掛簡介
Check out the Github Repository ♥
Limitless Communication: All-in-one, super scalable, messaging Solution for WordPress.
Ok hold on! ✋. So, many words in one line.
Let’s understand each one-by-one.
All-in-one: What do you want? – Email, SMS, push-notification? Get all-in-one.
But I don’t want to use xyz provider for SMS, I want to use pqr, can I have that? Yes it provides you with lot of pre implemented providers for all email, sms and push-notification.
Super Scalable: But I want to use an email provider named yxr you haven’t heard the name of. Now what? 🧐
No worries! Are you a developer? If yes, just write your own plugin and implement your own adapter and see it nicely hooked-up with “WordPress messaging”. Please refer to this section for implementing adapters.
And that’s how it provides Limitless communication! 🚀
Quick Links
Setup ⚙️ | Issues | Services and functions 🧩 | Create your own Adapter 🛠️
Coming soon ⏳
Push notifications
Email Testing page
SMS Testing page
Push notifications Testing page
Examples
Email 📧📨
Send an email through a particular adapter (with headers 😉) –
\Souptik\AllPathMessaging\Email\send(
[ '[email protected]' ],
'Yay its working!',
'This is some long mail body.',
'Souptik',
'[email protected]',
[
'cc' => [
[
'name' => 'CC Test',
'email' => '[email protected]',
],
],
'attachments' => [
trailingslashit( WP_CONTENT_DIR ) . '/mu-plugins/test-all-path-messaging.php',
'SameFileDifferentName.php' => trailingslashit( WP_CONTENT_DIR ) . '/mu-plugins/test-all-path-messaging.php',
],
],
'mailgun'
);
Just remove the last parameter! And now it uses the default selected adapter –
\Souptik\AllPathMessaging\Email\send(
[ '[email protected]' ],
'Yay its working!',
'This is some long mail body.',
'Souptik',
'[email protected]',
[
'cc' => [
[
'name' => 'CC Test',
'email' => '[email protected]',
],
],
'attachments' => [
trailingslashit( WP_CONTENT_DIR ) . '/mu-plugins/test-all-path-messaging.php',
'SameFileDifferentName.php' => trailingslashit( WP_CONTENT_DIR ) . '/mu-plugins/test-all-path-messaging.php',
],
],
);
Checked the override wp_mail checkbox? Try a simple wp_mail! –
wp_mail(
[ '[email protected]' ],
'Yay its working!',
'This is some long mail body - from wp_mail.',
[],
[]
);
SMS 📲
Send a SMS through a particular adapter –
\Souptik\AllPathMessaging\SMS\send( [ '+xxxxxxxxxxxx' ], 'Yay its working!', 'twilio' );
Just remove the last parameter! And now it uses the default selected adapter –
\Souptik\AllPathMessaging\SMS\send( [ '+xxxxxxxxxxxx' ], 'Yay its working!' );
Creating your own adapter 🛠️
Here comes the cool part fellow developers! 💻
Tip: I have provided a dummy adapter for each service at inc/
Consider that as the starting point and let’s understand what each file does.
Let’s start with namespace.php. It is the entry point of your adapter.
In that you will see a simple bootstrap function.
In that function we are hooking into EMAIL_SLUG . '_adapters' and registering our adapter.
We pass the following data –
slug
name
adapter class object.
options – An array defining the settings required for this adapter, which will be used to automatically display the options on the settings page.
Next is class-adapter.php, which is the Adapter class, which we initialized in the above file and passed it to adapter. It contains three simple functions –
get_settings_fields – This is the function which returns the array of options, which we used in the above file for options. Each option, will have –
The key as the name of the option.
And three values –
label – Label to display in the settings page beside the input.
type – Type of the field.
sanitize_callback
get_settings – This function returns an associative array, whose keys are the name of the options and the value as the value of the options.
get_adapter – This function will just return the core provider class, which is responsible for processing the message.
First check if Utopia Messaging already provides the provider or not here, for example Utopia\Messaging\Adapter\Email\Mailgun.
If it is present just use it. Easy peasy! ✨
But if not, let’s code it ourself, because Utopia Messaging makes it so easy to create a new adapter!
class-dummy.php is for that purpose, assuming you don’t get a provider already present in Utopia Messaging.
It’s basically a child class of EmailAdapter or SMSAdapter, which abstract a lot of stuff for us!
Let me explain two main functions, _construct and process. Rest of the functions and properties are self-explanatory! 😉
In the _construct function just put the arguments which you want to accept. That’s it! And now they will be available everywhere else as $this->param_name!
The process function is the place where you have to write the main logic of calling your providers API to send the message.
As said above all the credentials/data you accepted through constructor are available as $this->param_name.
Build the body and the headers.
And then you can use the $this->request function as demonstrated in the dummy!
Create a response using Utopia’s Response class.
Handle the errors, populate the response, return! Done! 🚀
External services
Brevo
This plugin connect’s to Brevo’s API to send emails through Brevo. This is the API it sends the request to.
The request is send everytime a mail is sent, and Brevo is selected as the default adapter from the plugin settings (or the function to send email through Brevo is directly invoked in the code).
Here is the Terms of Use and Privacy Policy of the service.
AWS SES
This plugin connect’s to AWS SES’s API to send emails through AWS SES.
The request is send everytime a mail is sent, and AWS SES is selected as the default adapter from the plugin settings (or the function to send email through AWS SES is directly invoked in the code).
Here is the Terms of Use and Privacy Policy of the service.
Mailgun
This plugin connect’s to Mailgun’s API to send emails through Mailgun.
The request is send everytime a mail is sent, and Mailgun is selected as the default adapter from the plugin settings (or the function to send email through Mailgun is directly invoked in the code).
Here is the Terms of Use and Privacy Policy of the service.
Telesign
This plugin connect’s to Telesign’s API to send SMS through Telesign.
The request is send everytime the function to send SMS is invoked with the Adapter as Telesign or the default adapter is set as Telesign.
Here is the Terms of Use and Privacy Policy of the service.
Twilio
This plugin connect’s to Twilio’s API to send SMS through Twilio.
The request is send everytime the function to send SMS is invoked with the Adapter as Twilio or the default adapter is set as Twilio.
Here is the Terms of Use and Privacy Policy of the service.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「All Path Messaging」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin 》WordPress Mail SMTP外掛, 如果您的WordPress網站無法正確發送電子郵件,您並不孤單。超過三百萬個網站使用WP Mail SMTP可靠地發送電子郵件。, 我們的目標是...。
MC4WP: Mailchimp for WordPress 》讓訪客訂閱您的電子報應該很容易。透過這款外掛,現在終於可以輕鬆做到了。 這個外掛可幫助您在 Mailchimp 中擴展您的電子郵件列表。您可以使用它來創建外觀...。
Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more 》您的 WordPress 電子郵件無法正常傳送嗎?, 安裝 Easy WP SMTP,即可解決您的電子郵件傳送問題。, Easy WP SMTP 允許您配置並透過 4 個交易郵件傳送者或 SMTP...。
Post SMTP – WP SMTP Plugin with Email Logs and Mobile App for Failure Notifications – Gmail SMTP, Office 365, Brevo, Mailgun, Amazon SES and more 》即時演示 | 擴充功能, WordPress郵件SMTP外掛程式, Post SMTP是一款下一代WP郵件SMTP外掛程式,可協助並改善您的WordPress網站郵件可遞送性處理。, 易於使用...。
Mailchimp for WooCommerce 》加入 Mailchimp 的 1,700 萬客戶,這是全球最大的行銷自動化平台,以發展您的電子商務行銷策略。藉由官方 Mailchimp for WooCommerce 整合,您的客戶及其購買...。
Creative Mail – Easier WordPress & WooCommerce Email Marketing 》Creative Mail是專門為WordPress和WooCommerce設計的電子郵件外掛。, 我們智能(且超級有趣的)郵件編輯器簡化了郵件營銷活動的創建過程,並將WordPress博客...。
WP Mail Logging 》WP Mail Logging 是最受歡迎的 WordPress 或 WooCommerce 郵件記錄外掛程式。啟用後立即運作,無需任何設定。, 為什麼要記錄 WordPress 或 WooCommerce 發送...。
SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers 》```html, , , ,
SureMails WordPress 外掛總結 , , , ,...。Site Mailer – SMTP Replacement, Email API Deliverability & Email Log 》總結: 使用 Site Mailer 外掛幫助解決 WordPress 網站無法寄送郵件、郵件進入垃圾郵件中或無法送達的問題。透過此工具,您可以輕鬆提升郵件管理,確保郵件準...。
Manage Notification E-mails 》這個外掛可以讓您開啟或關閉不同的 WordPress 通知電子郵件,例如 WordPress 傳送到管理員和使用者的新使用者和密碼更改通知選項。與許多其他外掛完美結合!,...。
Newsletter, SMTP, Email marketing and Subscribe forms by Brevo (formely Sendinblue) 》Sendinblue 的官方 WordPress 外掛程式是一個功能強大的全方位電子郵件行銷外掛程式。以下是一些概觀:, , 訂閱表單 – 建立自訂訂閱表單,輕鬆整合到文章、頁...。
Kadence WooCommerce Email Designer 》這個外掛讓你輕鬆自訂 WooCommerce 交易郵件的預設樣板。使用內建的 WordPress 自訂器即可即時視覺化編輯設計。在不編輯程式碼的情況下自訂每個 WooCommerce ...。
Check & Log Email – Easy Email Testing & Mail logging 》需要一個工具,讓你可以輕鬆地記錄和查看 WordPress 發送的所有電子郵件嗎? Check & Log 可能就是此問題的解決方案。, 此 WordPress 外掛可幫助你為審計目的...。
Contact Form 7 Extension For Mailchimp 》WordPress Extension for Mailchimp (Chimpmatic Lite)可將Contact Form 7與Mailchimp Audience集成。使用Mailchimp的最新API自動將Contact Form 7提交的信息...。
Email Log 》Email Log 是一個 WordPress 外掛,可以輕鬆地記錄和查看所有從 WordPress 發送的電子郵件。, 這在調試 WordPress 網站中與電子郵件相關的問題或存儲發送的電...。