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.
Mark S. (Guest)
on 2006-04-14 12: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
Mark S. (Guest)
on 2006-04-14 15: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.