【文件属性】:
文件名称:slack-mail:ActionMailer启发了Slack消息对象
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-19 09:20:22
Ruby
松弛::邮件
ActionMailer启发了消息对象。
用法
将Gemfile gem 'slack-mail'添加到您的Gemfile并安装它。
# Basic usage.
Slack :: Mail . new ( text : "..." ) . deliver_now
# Using `ActiveJob` to send async (if configured)
Slack :: Mail . new ( text : "..." ) . deliver_later
# Monitor your Rails app
class ApplicationController
rescue_from StandardError do | e |
Slack :: Mail . new ( channel : "bots" ) . attach_error ( e )
【文件预览】:
slack-mail-master
----.gitignore(118B)
----slack-mail.gemspec(974B)
----LICENSE.txt(1KB)
----README.md(2KB)
----lib()
--------slack()
----Gemfile(95B)
----Rakefile(29B)