Specify to and from

This commit is contained in:
2023-03-08 19:07:45 +11:00
parent cb18142734
commit 1853630102

View File

@@ -23,12 +23,15 @@ module Adamantium
}
end
Mail.deliver do
to @to
from @username
mail = Mail.new do
subject name
body content
end
mail[:to] = @to
mail[:from] = @from
mail.deliver
end
end
end