How can we set the name of the email sender in Rails Mailer?

If you’re using ActionMailer, try below

mail(
  from: 'Sender Name <sender@example.com>', 
  to: 'Receiver Name <receiver@example.com>', 
  subject: 'Subject'
)

If you’re using the Mandrill API, you can explicitly set the sender name API call payload

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)