📜  rails 从控制台发送电子邮件 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:45.880000             🧑  作者: Mango

代码示例1
ActionMailer::Base.mail(
  from: "test@example.co", 
  to: "valid.recipient@domain.com", 
  subject: "Test", 
  body: "Test"
).deliver_now