Sometimes with Rails you just want to test basic email sending from the console. Here is how you can do it, without needing a Mailer or views or anything:
ActionMailer::Base.mail( to: 'firstname.lastname@example.org', from: 'email@example.com', subject: 'test', body: 'testing', ).deliver_now
Or in older versions use
deliver instead of
deliver_now. This will use your ActionMailer settings but doesn’t require anything else, so you can test just the SMTP config (or whatever).