Adding headers to a TMail object

I get a header that is set on a TMail object using


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?


Bleh, ignore this.

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

Duff code in my tests was hiding the real problem!


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs