Sending mail using action mailer

1 view
Skip to first unread message

Saravanan Doraiswamy

unread,
Mar 18, 2010, 7:27:32 AM3/18/10
to rubyonra...@googlegroups.com
Hi everyone,

I am new to ruby and i just wanna send an email using ruby action
mailer. i have been trying it for about a day. Not achieved. so many
replies came in from google but many were beating the bushes ..

can any one send me a correct procedure..

regards

ds
--
Posted via http://www.ruby-forum.com/.

Loganathan Ganesan

unread,
Mar 18, 2010, 7:53:16 AM3/18/10
to rubyonra...@googlegroups.com
Saravanan Doraiswamy wrote:
> Hi everyone,
>
> I am new to ruby and i just wanna send an email using ruby action
> mailer. i have been trying it for about a day. Not achieved. so many
> replies came in from google but many were beating the bushes ..
>
> can any one send me a correct procedure..
>
> regards
>
> ds

Refer the below URL:
http://ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html

At the starting of the page itself, an example code is given for sending
mail.

Bigos

unread,
Mar 18, 2010, 8:06:45 AM3/18/10
to Ruby on Rails: Talk
if it is not enough, look for clues in log files in railsapp/log
making sure you check logs relevant to mode you run your app, eg.
development.log
if there's nothing there you need to configure your railss application
to send mails and report errors.

My railsapp/config/environments/development.rb also has following

config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :sendmail ####

As regards delivery_method it might be different on your system if you
don't have email server installed on it.
You can find documentation how to configure rails to use googlemail,
so it should be easy to adapt it to your needs

Hope it helps.

Jacek

Saravanan Doraiswamy

unread,
Mar 18, 2010, 8:26:02 AM3/18/10
to rubyonra...@googlegroups.com
Hi,

In this mean time, i downloaded a youtube video and followed the
procedure, now i am getting this error :

E:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in
`const_missing'
E:/Users/Jithu/RubyMails/gmailer/app/controllers/notifications_controller.rb:3:in
`create'

can you help me get out of this

regards,

ds

Reply all
Reply to author
Forward
0 new messages