Dark Ambient
2006-Aug-22 13:55 UTC
[Rails] Computer illiterate - development and action mailer
While I''m working in development using localhost is there a way to test action mailer ? TIA Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
njmacinnes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Aug-22 14:18 UTC
[Rails] Re: Computer illiterate - development and action mailer
I''ve never tried this, but I would think if you find out the name of your computer (what it would be called if it was on a network. In windows, you can find this out it System Properties... mine is ''your-82va731wkz''). Then if you set up a mail server, you can probably email to anything@your-82va731wkz. Another option is to create an object called ActionMailer to temporarily replace the real ActionMailer, and this function should just save to a file. Make sure that''s saving everything as it should be sent, then you can do last minute tests on the real thing when you upload to your server or whatever. Hope this helps. -Nathan On 22/08/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > While I''m working in development using localhost is there a way to > test action mailer ? > > TIA > Stuart > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Michael Modica
2006-Aug-22 15:14 UTC
[Rails] Re: Computer illiterate - development and action mailer
Stuart Fellowes wrote:> While I''m working in development using localhost is there a way to > test action mailer ? > > TIA > StuartYou can test it - are you looking to send the emails still or not? If not, you can set ActionMailer::Base.perform_deliveries = false in your environment.rb file. If you do want to send emails, then just send them to an SMTP account somewhere and use those settings instead of your real email settings. I suspect, however, that you are trying to not send the emails. FYI - in development, if you set perform_deliveries = false then you can still look in your development.log file to see the email that WOULD HAVE been sent! Regards, Michael -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Dark Ambient
2006-Aug-22 15:53 UTC
[Rails] Re: Computer illiterate - development and action mailer
On 8/22/06, Michael Modica <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> If you do want to send emails, then just send them to an SMTP account > somewhere and use those settings instead of your real email settings. I > suspect, however, that you are trying to not send the emails.That makes sense (using an SMTP account) However your suspicions are wrong :) I want to send the email as they will be part of my registration process to activate and account. Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---