mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
a pretty good template for email sending in a fever
This commit is contained in:
parent
f88c81b54a
commit
8ed3183c5f
1 changed files with 16 additions and 0 deletions
16
Rakefile
16
Rakefile
|
@ -13,6 +13,22 @@ end
|
|||
|
||||
task :default => :test
|
||||
|
||||
=begin
|
||||
desc "send domain update email"
|
||||
task :send_domain_update_email => [:environment] do
|
||||
Site.exclude(domain: nil).exclude(domain: '').all.each do |site|
|
||||
msg = <<-HERE
|
||||
MESSAGE GOES HERE TEST
|
||||
HERE
|
||||
|
||||
site.send_email(
|
||||
subject: 'SUBJECT GOES HERE',
|
||||
body: msg
|
||||
)
|
||||
end
|
||||
end
|
||||
=end
|
||||
|
||||
desc "parse logs"
|
||||
task :parse_logs => [:environment] do
|
||||
Dir[File.join($config['logs_path'], '*.log')].each do |log_path|
|
||||
|
|
Loading…
Add table
Reference in a new issue