#place this directly in the rails console of ur rails application class UserMailer < ActionMailer::Base default from: 'sender@espace.com.eg' def test_email @receiver_email = 'mahmoud.said@espace.com.eg' mail(to: @receiver_email, subject: 'testing email from console') end end UserMailer.test_email.deliver! # If the configuration is correct and everything is fine, the receiver should receive the test email instantly