mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-16 03:41:41 +00:00
added content type option to email digest
This commit is contained in:
parent
87760f1135
commit
1481d50b05
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,10 @@ module Agents
|
|||
|
||||
You can provide a `from` address for the email, or leave it blank to default to the value of `EMAIL_FROM_ADDRESS` (`#{ENV['EMAIL_FROM_ADDRESS']}`).
|
||||
|
||||
You can provide a `content_type` for the email and specify `text/plain` or `text/html` to be sent.
|
||||
|
||||
If you do not specify `content_type`, then the recipient email server will determine the correct rendering.
|
||||
|
||||
Set `expected_receive_period_in_days` to the maximum amount of time that you'd expect to pass between Events being received by this Agent.
|
||||
MD
|
||||
|
||||
|
@ -49,6 +53,7 @@ module Agents
|
|||
from: interpolated['from'],
|
||||
subject: interpolated['subject'],
|
||||
headline: interpolated['headline'],
|
||||
content_type: interpolated['content_type'],
|
||||
groups: groups
|
||||
).deliver_later
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue