Setting messageid in mailer

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?

I’ve tried these in my mailer model:
@headers[“message-id”] = “12345”
#gets ignored
and
message_id = “12345”
#gets ignored
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

Any ideas?

thanks
Thomas

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 B.
Lunchbox Software
http://lunchboxsoftware.com
http://lunchroom.lunchboxsoftware.com
http://rubyi.st