Welcome Guest | Login

action mailer settings

hi :)
what are the settings for action mailer? I have the following settings

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {
 :address => "mail.hhtimesheet.com",
 :port => 26,
 :domain => "mail.hhtimesheet.com",
 :user_name => "support+hhtimesheet.com",
 :password => "xxxx"
}

but when i try to send email from rails application i get the following error in the log:

Net::SMTPSyntaxError (504 CRAM-MD5 authentication mechanism not supported
):
   /usr/local/lib/ruby/1.8/net/smtp.rb:680:in `check_response'
   /usr/local/lib/ruby/1.8/net/smtp.rb:593:in `auth_cram_md5'
   /usr/local/lib/ruby/1.8/net/smtp.rb:686:in `critical'
   /usr/local/lib/ruby/1.8/net/smtp.rb:592:in `auth_cram_md5'
   /usr/local/lib/ruby/1.8/net/smtp.rb:571:in `__send__'
   /usr/local/lib/ruby/1.8/net/smtp.rb:571:in `authenticate'
   /usr/local/lib/ruby/1.8/net/smtp.rb:411:in `do_start'
   /usr/local/lib/ruby/1.8/net/smtp.rb:378:in `start'
   /usr/local/lib/ruby/1.8/net/smtp.rb:316:in `start'
   /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.3.4/lib/action_mailer/base.rb:565:in `perform_delivery_smtp'
   /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.3.4/lib/action_mailer/base.rb:451:in `send'
   /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.3.4/lib/action_mailer/base.rb:451:in `deliver!'
   /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.3.4/lib/action_mailer/base.rb:333:in `method_missing'

2007-10-31 09:08 AM

Just use sendmail if you don't need smtp:

ActionMailer::Base.delivery_method = :sendmail  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.raise_delivery_errors = true  
ActionMailer::Base.default_charset = "utf-8"
its much faster, too.

2007-10-31 09:18 AM

Thanks a lot :)

2007-10-31 09:19 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.