https://github.com/siteserver/ss.mail
SiteServer CMS 邮件发送插件
https://github.com/siteserver/ss.mail
Last synced: about 1 year ago
JSON representation
SiteServer CMS 邮件发送插件
- Host: GitHub
- URL: https://github.com/siteserver/ss.mail
- Owner: siteserver
- License: gpl-3.0
- Created: 2019-03-08T02:45:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T03:44:29.000Z (over 5 years ago)
- Last Synced: 2025-04-18T17:19:18.167Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.05 MB
- Stars: 2
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SiteServer CMS 邮件插件(SS.Mail)
用于实现发送邮件功能。
## 插件调用SS.Mail包
开发插件时可以引用并调用 SS.Mail 邮件插件接口发送邮件,方法如下:
### SS.Mail包安装
请在包管理器控制台中运行以下命令:
```
PM> Install-Package SS.Mail
```
### API 调用
```c#
var mailPlugin = PluginApi.GetPlugin(MailPlugin.PluginId);
if (mailPlugin != null && mailPlugin.IsReady)
{
var isSuccess = mailPlugin.Send("address@domain.com", "收件人", "邮件标题", "邮件正文", out var errorMessage);
}
```