[Rails] Re: How can I do disable email delivery in development mode?

2014-06-25 Thread James Davis, PhD
On Monday, June 23, 2014 4:41:54 AM UTC-5, Ruby-Forum.com User wrote: Is it any way to do disable email delivery in development mode? Kind regards. -- Posted via http://www.ruby-forum.com/. Take a look at this Railscast - http://railscasts.com/episodes/61-sending-email-revised It

[Rails] Re: How can I do disable email delivery in development mode?

2014-06-24 Thread Max
I recommend using the letter opener gem. it's fantastic for development - check it out: https://github.com/ryanb/letter_opener -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving

[Rails] Re: How can I do disable email delivery in development mode?

2014-06-23 Thread Jaimin Pandya
On 23 June 2014 10:41, Jaimin Pandya li...@ruby-forum.com wrote: You can test which environment is currently running and not send the email in development. See http://apidock.com/rails/Rails/env/class Is their any way to add code in development.rb file and i can disable email delivery? --

Re: [Rails] Re: How can I do disable email delivery in development mode?

2014-06-23 Thread Rafi A
Hi, development.rb is environment specific file. It wont work when you run application in production mode. So if you want to have access to single file which you want to run in all the modes, better have the mailer code in environment.rb / application.rb file with environment conditions as said

[Rails] Re: How can I do disable email delivery in development mode?

2014-06-23 Thread Frederick Cheung
On Monday, June 23, 2014 10:41:54 AM UTC+1, Ruby-Forum.com User wrote: Is it any way to do disable email delivery in development mode? If you set config.action_mailer.delivery_method = :test in development.rb Then no emails will get send (assuming you don't have something somewhere

Re: [Rails] Re: How can I do disable email delivery in development mode?

2014-06-23 Thread Greg Akins
On Monday, June 23, 2014 10:41:54 AM UTC+1, Ruby-Forum.com User wrote: Is it any way to do disable email delivery in development mode? I use https://github.com/pboling/sanitize_email to force all emails to be sent to one pre-defined email address. -- You received this message because you are

[Rails] Re: How can I do disable email delivery in development mode?

2014-06-23 Thread Jaimin Pandya
On Monday, June 23, 2014 10:41:54 AM UTC+1, Ruby-Forum.com User wrote: Is it any way to do disable email delivery in development mode? If you set config.action_mailer.delivery_method = :test in development.rb Then no emails will get send (assuming you don't have something somewhere

[Rails] Re: How can I do disable email delivery in development mode?

2014-06-23 Thread Damián M. González
Just do in development.rb config file: config.action_mailer.perform_deliveries = false -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails