instance method
enforced_message_id=
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
enforced_message_id=( str )
Destructively sets the message ID of the mail object instance to the passed in string and also guarantees that calling #ready_to_send will not destroy what you set as the message_id
Example:
mail = TMail::Mail.new mail.message_id = "<348F04F142D69C21-291E56D292BC@xxxx.net>" mail.message_id #=> "<348F04F142D69C21-291E56D292BC@xxxx.net>" mail.ready_to_send mail.message_id #=> "<348F04F142D69C21-291E56D292BC@xxxx.net>"
Parameters
-
strreq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb, line 626
def enforced_message_id=( str )
@message_id_enforced = true
self.message_id = ( str )
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb line 626
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail