Forum: Ruby Adding headers to a TMail object

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ddbd8bc32e3a87163b4658b2785d2082?d=identicon&s=25 Mark Somerville (Guest)
on 2006-04-14 10:28
(Received via mailing list)
I get a header that is set on a TMail object using

my_mail["my-header"]

but I can't seem to figure out from the docs how to add headers.

Can anyone show me an example of how to set the header "my-header" to
"my-value", please?

Mark
Ddbd8bc32e3a87163b4658b2785d2082?d=identicon&s=25 Mark Somerville (Guest)
on 2006-04-14 13:11
(Received via mailing list)
Bleh, ignore this.

It is as simple as my_mail["my-header"] = "my-value"

Duff code in my tests was hiding the real problem!

Mark
This topic is locked and can not be replied to.