Last active
May 6, 2023 07:35
-
-
Save poacosta/d7a7cc2ab8b1c846554b25685a306a6d to your computer and use it in GitHub Desktop.
Send email from RoR console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
mailer = ActionMailer::Base.new | |
mailer.delivery_method | |
mailer.smtp_settings | |
mailer.mail(from: '[email protected]', to: '[email protected]', subject: 'Testing email', body: "Hello, you've got mail!").deliver! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment