# Gmailer reply

**URL:** <https://www.ruby-forum.com/t/gmailer-reply/95355>\
**Category:** Ruby\
**Created:** [May 30, 2006, 4:31am UTC](https://www.ruby-forum.com/t/gmailer-reply/95355 "2006-05-30T04:31:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 30, 2006, 4:31am UTC](https://www.ruby-forum.com/t/gmailer-reply/95355/1 "2006-05-30T04:31:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 30, 2006, 5:43am UTC](https://www.ruby-forum.com/t/gmailer-reply/95355/2 "2006-05-30T05:43:07Z")

</div>

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 H.
