While I’m working in development using localhost is there a way to
test action mailer ?
TIA
Stuart
While I’m working in development using localhost is there a way to
test action mailer ?
TIA
Stuart
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
Stuart Fellowes wrote:
While I’m working in development using localhost is there a way to
test action mailer ?TIA
Stuart
You 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
On 8/22/06, Michael M. [email protected] 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs