On Dec 7, 2005, at 6:08 PM, Thomas Rynne wrote:
> Hi,
> I want to set the message-id of the messages sent using the mailer
> (so that
> I can recognise replies). Has anyone done this?
>
> and this separate bit of code:
> mail = MyMailer.create_reminder_message(user)
> mail.message_id = "123
> MyMailer.deliver(mail)
> #there''s no deliver method on MyMailer
This method should definitely work, I am using it with success. The
deliver
method is set up by action mailer, it is not a method you add to
MyMailer
yourself.
You might also consider using TMail.new_message_id to create a message
id:
mail.message_id = TMail.new_message_id
--
Scott Barron
Lunchbox Software
http://lunchboxsoftware.com
http://lunchroom.lunchboxsoftware.com
http://rubyi.st