Hi -
It's a host provided mail account:
my host is 600host.net
my domain is thinkersplayground.com
and the email is [email protected]
I tried adding the code you provided in my environment.rb (I did have
it in prodcution.rb) and I now get an error:
...s/config/environment.rb:13:NameError: uninitialized constant
ActionMailer
The code I added was:
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "localhost",
:port => 465,
:domain => "thinkersplayground.com",
:authentication => :login,
:user_name => "noreply+thinkersplayground.com",
:password => "password"
}
Any clues?
Should this be config.action_mailer.smtp_settings = {} instead?
thanks
On 19 Jan, 15:16, "Agustin Nicolas Viñao Laseras"
<[email protected]> wrote:
> What mail do you need to setup? Gmail smtp? or a host provided mail?
>
> In my case i use this in envirotment.rb
> ActionMailer::Base.raise_delivery_errors = true
> ActionMailer::Base.perform_deliveries = true
> ActionMailer::Base.delivery_method = :smtp
> ActionMailer::Base.smtp_settings = {
> :address => "smtp.gmail.com",
> :port => "587",
> :domain => "domain.com",
> :authentication => :plain,
> :user_name => "u...@domaincom",
> :password => "password"
>
> }
>
> And i generate the mail controller with:
>
> ruby script/generate mailer Notifier
>
> Notifier is the controller to send mails.
>
> On Mon, Jan 19, 2009 at 1:10 PM, Dr_Gavin <[email protected]>wrote:
>
>
>
> > Hey - can anyone spare a few minutes to explain how to set-up
> > actionmailer in Rails 2.2.2
> > I have read the API but still not sure if I'm changing the correct
> > file?
> > I am going nuts with this!
>
> > Do I add my smtp settings to environment.rb or edit them in base.rb
> > in the actionmailer folder?
>
> > The error message I receive when trying to send emails is
>
> > SocketError: getaddrinfo: Name or service not known
>
> > If anyone can spare a few mins either on this thread or on MSN/Skype/
> > Google chat I would really appreciate it
>
> > Ta
>
> > Gavin
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---