ActionMailer Message-Id field

Joe Stelmach
2007-10-03T19:56:51Z

I am attempting to set my own value for the message-id header in emails
delivered via ActionMailer.  The underlying TMail object allows the
message_id to be set, but it looks like the deliver method of action
mailer will overwrite any value that is presently there at the time of
delivery.

Looking at action mailer''s base.rb file, you can see that the
perform_delivery_smtp method calls the ready_to_send method, which calls
add_message_id, which definitively sets the message_id property to the
result of TMail::new_message_id.

Has anyone figured out a way to use their own message ids without
modifying the action mailer code?
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---