From: Cliff Rosson Date: 2013-05-31T00:40:25+09:00 Subject: Re: sending a gmail using ruby --047d7b072432c4019304ddf14fa6 Content-Type: text/plain; charset=ISO-8859-1 Does it work in ruby 2.0.0? On Thu, May 30, 2013 at 3:37 AM, Sebastjan H. wrote: > Cliff Rosson wrote in post #1110540: > > Try connecting first. That works for me. > > > > require 'highline/import' > > require 'gmail' > > > > password = ask("Password: ") { |q| q.echo = "*" } > > > > @gmail = Gmail.connect("cliff.rosson@gmail.com", password) > > > > email = @gmail.compose do > > to "cliff.rosson@gmail.com" > > subject "blah blah blah" > > body "blah blah blah" > > end > > > > @gmail.deliver(email) > > @gmail.logout > > just for info: the above code works for me, with my name off course:) > regards > seba > > -- > Posted via http://www.ruby-forum.com/. > > -- vizualize.me/cliffrosson --047d7b072432c4019304ddf14fa6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Does it work in ruby 2.0.0?


On Thu, May 30, 2013 at 3:37 AM, Sebas= tjan H. <lists@ruby-forum.com> wrote:
Cliff Rosson wrote in post #1110540:
> Try connecting first. That works for me.
>
> require 'highline/import'
> require 'gmail'
>
> password =3D ask("Password: ") { |q| q.echo =3D "*"= ; }
>
> @gmail =3D Gmail.connect("cliff.rosson@gmail.com", password)
>
> email =3D @gmail.compose do
> =A0 =A0 to "cliff.rosso= n@gmail.com"
> =A0 =A0 subject "blah blah blah"
> =A0 =A0 body "blah blah blah"
> =A0 end
>
> @gmail.deliver(email)
> @gmail.logout

just for info: the above code works for me, with my name off course:)=
regards
seba



--
=
vizualiz= e.me/cliffrosson
--047d7b072432c4019304ddf14fa6--