I am looking to add email functionality to my project, whilst
following the railsspace tutorial.
The book suggests that I add the following into the environment.rb
file:
It sounds like what you've done is add this too early in
environment.rb, ie before rails itself is loaded. A safe place to put
this stuff is in the per-environment configuration files (ie config/
environments/production.rb) - you don't want your development machine
sending out real emails to your users.
As i'm running this in production, what do I use for these settings,
as I dont have usernames, passwords etc...
That depends on your mail setup. If the smtp server you're using
doesn't require authentication then you can leave out settings related
to authentication.