FYI, to setup mail for my development environment I had to edit
configuration/environments/development.rb with the following:

1. Comment out the delivery_method so that it looks like this:
#config.action_mailer.delivery_method = :test

2. Add the action mailer settings like this (for example):

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address    => "mail.myserver.com",
  :port       => 25,
  :domain     => "www.myserver.com"
}

On Aug 8, 8:54 am, fadhli <[EMAIL PROTECTED]> wrote:
> You could easily create your own email settings file e.g email_settings.rb
> and put it into config/initializers
>
> begin
>   unless ENV['RAILS_ENV'] == 'test'
>     ActionMailer::Base.delivery_method = :smtp
>     ActionMailer::Base.smtp_settings = {
>       :address => "mail.yoursmtpaddress.com",
>       :port => "2525",
>       :domain => "yourdomain",
>       :authentication => :login,
>       :user_name => "username",
>       :password => "Password"
>     }
>   end
> end
>
>
>
> On Fri, Aug 8, 2008 at 6:51 PM, trillian67 <[EMAIL PROTECTED]> wrote:
>
> > Does anybody know where I set smtp server properties such as
> > port, domain, username, password etc.... I don't think these
> > properties are set in config/initializers/global_variables.rb
>
> > I want to use my email providers smtp server whilst testing and
> > developing a  Lovd by Less application.
>
> > On Aug 8, 9:36 am, ic3m0nst3r <[EMAIL PROTECTED]> wrote:
> > > Yep! That's the same reason I setup my own server.
>
> > > On Jun 16, 9:46 pm, "Steven A Bristol" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > On 6/16/08, fadhli <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello
>
> > > > > I tried that one, but the problem that I always got is gmail thinks
> > that
> > > > > I'm a spammer and reject to send my message. Have you encountered
> > this
> > > > > problem? How did you solve it?
>
> > > > The way we do things in production is we use sendmail on the server, so
> > the
> > > > rails app just sends mail via the built in sendmail stuff. Using gmail
> > to
> > > > send mail isn't a good idea because there is a hard limit on the number
> > of
> > > > emails gmail let's you send per account per day.
>
> > > > steve- Hide quoted text -
>
> > > - Show quoted text -
>
> --
> Fadhli Rahim

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to