From: David Munyaka Date: 2013-05-30T01:55:30+09:00 Subject: sending a gmail using ruby please help analyzing this code and please give me some recommendations. I am trying to send an email from one gmail account to another. The first error I am getting is that my password for my gmail is not being accepted by the code. Please offer a solution to this or point me to a code that has worked for you in sending gmail. I have installed the gmail gem. I am using ruby 2.0.0p195 the code I am using is: require 'gmail' gmail = Gmail.new(username@gmail.com, password) gmail.deliver do to "username@gmail.com" subject "Not feeling well" text_part do body "I won't be coming in today." end html_part do body "

I won't be coming in today.

" end end gmail.logout -- Posted via http://www.ruby-forum.com/.