One of my email programs is as follows:
mail(:from => "Support Team <support@email.com>",
:to => "#{@user.alias} <#{@user.email}>",
:subject => 'Verification Email')
However, if the user's nickname - "Foobar, Bar", then the email is actually sent to the following address: Foobar, Bar <foobar@gmail.com>. that is, to foobar and to the composer.
I think the problem is with the comma in "Foobar, Bar". Does it need to run or something else?
Should my handwriting look like this:
mail(:from => "Support Team <support@email.com>",
:to => @user.email,
:subject => 'Verification Email')
source
share