Forum: Ruby gmailer reply

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
56bd55778571ad185109cab84588c92f?d=identicon&s=25 unknown (Guest)
on 2006-05-30 04:31
Is there a way to reply to a message with the ruby gmailer library? I
see that there are "message_replying" and "thread_replying" arguments in
the "send" function, but I don't see how to use them to reply to a
message. Thanks.
E51d56251ec4affafe85ee9367228965?d=identicon&s=25 Park Heesob (Guest)
on 2006-05-30 05:43
(Received via mailing list)
Hi,

>
First you need a msg_id value of the original message.
Then you can send replay like this:

  GMailer.connect(name, pwd) do |g|
      g.send(
        :to => from_email,
        :subject => "Re: " + subject
        :body => "Hi...\n\nBlah blah blah~...",
        :msg_id=>msg_id
       )
   end


Regards,

Park Heesob
This topic is locked and can not be replied to.