# Gmailer not connecting go gmail account

**URL:** <https://www.ruby-forum.com/t/gmailer-not-connecting-go-gmail-account/180901>\
**Category:** Rails\
**Created:** [December 31, 2009, 7:47am UTC](https://www.ruby-forum.com/t/gmailer-not-connecting-go-gmail-account/180901 "2009-12-31T07:47:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikragu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Post date:** [December 31, 2009, 7:47am UTC](https://www.ruby-forum.com/t/gmailer-not-connecting-go-gmail-account/180901/1 "2009-12-31T07:47:34Z")

</div>

hi all i have installed gmailer gem and when trying to connect with my  
gmail account using it im getting the error “RuntimeError (Not  
connected, verify the credentials.)”.

Code i used are as follows:

```
require 'rubygems'
require 'gmailer'

GMailer.connect("removed_email_address@domain.invalid","password") do |g|

    g.send(

  :to => "removed_email_address@domain.invalid",

  :subject => "Mail from application",

  :body => "mail from application"

```

)

```
end
```
