Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails send email from console

ActionMailer::Base.mail(
  from: "test@example.co", 
  to: "valid.recipient@domain.com", 
  subject: "Test", 
  body: "Test"
).deliver_now
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #send #email #console
ADD COMMENT
Topic
Name
8+8 =