How do I specify [To] headers by mail?
I am sending an email
mail from: from_email, to: members_email_id, subject: mail_subject, :reply_to => to_email
mail is coming, but I want to set up "To", instead of user emails I want to show " xyz@abc.com " in "To".
Can we change it using the ['To'] headers ?, for example, "[" Delivered-to "] = to_email" headers.
+3
source to share
1 answer
What's the question? Do you want to send an email to someone at member_email_id but want to show " xyz@abc.com " in the field?
to: where the email will be delivered so that you don't send it to xyz@abc.com , it won't work.
All headers can be set as headers [field] = value or as hash headers ({'field' => 'value', 'field' => 'value'})
0
source to share