How can I send an email in one line without creating a mailer class?
I need to set all the params including :from (which is different than the smtp user)
So far I got this:
# ok not exactly a one liner, but it doesn't matter
ActionMailer::Base.mail(:from => 'admin@mysite.me', :to => 'someone@gmail.com', :subject => 'subject bla') do
'content bla'
end.deliver
The content is not working, I receive a blank email
Omg, we have one-liner!