Hi Park,

Thanks for the quick release ;-)

I had a problem with this "attachment" part:

<snip>
> 
>    require "gmailer"
> 
>    gmail = GMailer.new
>    gmail.setLoginInfo(name, pwd)
>    if gmail.connect
>       to = "who / what.com, my_friend / his_company.com, god / heaven.org"
>       cc = "foo / bar.com"
>       subj = "Hello There!"
>       message = "Hi...\n\nBlah blah blah~..."
>       attachments = ["./my_pic.jpg", "./my_cv.txt"]
                      ^^^^^^^^^^^^^^^^
On Windows, with ruby 1.8.2 (2004-12-25) [i386-mswin32], I had a problem
sending binary attachments. Also, I saw a lot of debug stuff flying across 
the screen.
 
>       gmail.send(to, subj, message, cc, '','', '', attachments, false, '')
>    end
 
<snip>

I fixed the first problem by changing line 466 of your gmailer.rb from this:

   content = File.open(f){ |c| c.read }

to this:

   content = File.open(f,"rb"){ |c| c.read }

And I fixed the second problem by commenting out line 478 of gmailer.rb:

   np.set_debug_output($stderr)

No big deal ... thought I would share it with you. You will surely have
a better way to change it :-)

-- shanko


   



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs