內容簡介
**外掛總結:**
- 這個外掛的功能很簡單:當您的網站上發生某些事件時,如發布新文章或現有文章被移到垃圾桶時,它會發送自訂電子郵件。
- 除此之外,您可以添加條件,使自訂電子郵件僅在特定情況下發送,例如當文章具有特定狀態或文章作者具有特定角色時。
**問題與答案:**
1. 這個外掛主要功能是什麼?
- 回答:發送自訂電子郵件來通知網站上發生的事件,如新文章發布或現有文章被移到垃圾桶。
2. 外掛提供哪些事件觸發功能?
- 回答:文章狀態更改事件以及文章更新事件。
3. 外掛支援哪些條件設定?
- 回答:文章狀態、文章分類、使用者角色和使用者類型(帳戶或訪客)。
4. 可以將自訂電子郵件發送給多個收件人嗎?
- 回答:是的,您可以將自訂電子郵件發送給多個收件人,如文章作者或進行更改的使用者。
5. 如何在電子郵件主題和內容中添加文章和使用者數據?
- 回答:您可以使用格式:((dataType.value | DataID)) 將目前文章和/或使用者的數據添加到電子郵件主題和內容中。
6. 提供了哪些可用數據值?
- 回答:包括文章標題、文章內容、文章 ID、文章 URL、使用者名稱、使用者電子郵件和使用者 ID。
外掛 GitHub 頁面連結:[https://github.com/Neblabs/automated-emails-original](https://github.com/Neblabs/automated-emails-original)
外掛標籤
開發者團隊
② 後台搜尋「Automated Emails: Send custom emails on actions like post is published or updated」→ 直接安裝(推薦)
原文外掛簡介
This plugin does one simple thing: it sends custom emails when something happens on your site, like when a new post has been published or when an existing post has been moved to the trash.
Features
6 events:
Post Status Change (+ 3 presets) – when the status of a post has changed.
Post Updated (+1 preset) – when a post has been updated in the database.
Multiple recipients: Send to multiple recipients, like the post author or the user making the cahnges
Smart placeholders: Add post or user data in your custom emails (subject and body)
6 post values: title, title (raw), content, content (raw), id, url
3 user values: public name, email, id
Adding Data to the subject and body
This plugin allows you to add the data for current post and/or user to the email subject and body. To do so, you have to use the format: ((dataType.value | DataID))
For example:
Hello, John Doe! would be written as: Hello, ((user.nameDisplay | PostAuthor))
Here are the available values:
* post title: ((post.title | UpdatedPost))
* post title, unfiltered: ((post.titleRaw | UpdatedPost))
* post content: ((post.content | UpdatedPost))
* post content, unfiltered: ((post.contentRaw | UpdatedPost))
* post id: ((post.id | UpdatedPost))
* post url: ((post.url | UpdatedPost))
* user public name: ((user.nameDisplay | PostAuthor))
* user id: ((user.id | PostAuthor))
* user email: ((user.email | PostAuthor))
GitHub: https://github.com/Neblabs/automated-emails-original
