Skip to content

How to test the email config? #1309

Answered by pixeldesu
greyidol asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to create an instance of Retromail (our customized Devise mailer, the only mailer we actually use at the moment) in the Rails console and send an email with it.

Not exactly sure if it will work, but worth a shot maybe:

@mailer = Retromail.new
# you can run `@mailer.smtp_settings` to look/set the currently applied SMTP settings

@mailer.mail(from: 'sender@example.com', to: 'recipient@example.com', subject: 'test', body: "Hello, you've got mail!").deliver

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by greyidol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants