Project

General

Profile

How to set header field "from"?

Added by Serge Kosse almost 14 years ago

Hi.
How to set header field 'from' with value some "John Doe<>"

see model mailer.rb, private method initialize_defaults, on line 338

original code:
from Setting.mail_from

I tried to write so:
from ["#{User.current.login}<#{User.current.mail}>"]
from= ["#{User.current.login}<#{User.current.mail}>"]
from_addrs= "#{User.current.login}<#{User.current.mail}>"

As result, i have mail with empty header field 'from'


Replies (1)

    (1-1/1)