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
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.
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
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
Loganathan G. wrote:
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.