Use default sender name when using SendGrid?

I am not sure where to install it. I can send emails with my domain ( info@domain.com ), but I want it to be Domain info@domain.com instead of Info info@domain.com when users see who sent it. I use SendGrid, Heroku, Namecheap and Ruby on Rails. How it's done?

+6
source share
1 answer

A "pretty" email address can be specified using the format

 "Pretty Name" < uglyname@example.com > 

Not sure if double or single quotes are significant, but assuming they are, your mail program may have lines

 class MyMailer < ActionMailer::Base default :from => '"Pretty Name" < uglyname@example.com >' ... rest of mailer code 
+11
source

Source: https://habr.com/ru/post/910758/


All Articles