You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
324 B
13 lines
324 B
class DumpMailer < ApplicationMailer
|
|
default from: "paktikum@marzell.net"
|
|
|
|
def daily_dump(zip_path)
|
|
attachments[File.basename(zip_path)] = File.read(zip_path)
|
|
mail(
|
|
to: "christoph@marzell.net",
|
|
subject: "📦 Täglicher SQL Dump"
|
|
) do |format|
|
|
format.text { render plain: "Dump im Anhang." }
|
|
end
|
|
end
|
|
end
|