📜  rails 发送测试邮件 - Ruby 代码示例

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

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