Hello All, I am trying to use Mandrill api in my rails app. I am getting this error every time:- Net::SMTPServerBusy (401 4.1.7 Bad sender address syntax) I am using Ruby - 1.9.3, rails - 3.2.8, Thin server, & Ubuntu 12.10. in Gemfile:- gem "mandrill-api", "~> 1.0.45" gem ''mandrill_mailer'' application.rb:- config.action_mailer.default_url_options = { :host => ''localhost:3000'' } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.mandrillapp.com", :port => 587, :user_name => ENV["some email"], :password => ENV["api key"], :authentication => ''login'' } In mailer.rb:- def verify_code(user) mail(:to => user.email, :subject => "TEXT") do |format| format.html end end In controller:- UserMailer.verify_code(resource).deliver # Here resource is the user object What am I doing wrong here? Thanks, Avinash -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a0ba12be-3948-4cdd-b0f9-1edaf9e69fec%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
What are you using as the sender (from) address? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fd2e10775152fa4a33b4d48f3379a466%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Hello, Sorry for late reply. I am getting this error:- - *Net::SMTPServerBusy (401 4.1.7 Bad sender address syntax.)* *TOTAL CODE:- * - Rails- 3.2.8, Ruby-1.9.3, Thin server - In Gemfile:- - gem ''mandrill_mailer'' - In application.rb:- - config.action_mailer.smtp_settings = { - :address => "smtp.mandrillapp.com", - :port => 587, - :enable_starttls_auto => true, - :user_name => "E <registration-E3KyaPEJENhWk0Htik3J/w@public.gmane.org>MAIL", - :password => "*API KEY*", - :authentication => ''login'', - :domain => ''h <http://olamundo.com/>eroku.com'' # what is the domain here? - } - In devise.rb:- - Devise.setup do |config| - config.mailer_sender = "M <registration-E3KyaPEJENhWk0Htik3J/w@public.gmane.org>AIL" - config.mailer = "Devise::Mailer" - end - In my registration_controller.rb:- - UserMailer.verify_code(resource).deliver - We are using* Devise. Resource *here is the* user object.* - In mailer.rb:- - - def verify_code(user) - mail(:to => user.email, :subject => "Hello") do |format| - format.html - end - end On Wednesday, September 11, 2013 9:30:19 PM UTC+5:30, Ruby-Forum.com User wrote:> > What are you using as the sender (from) address? > > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9d9c93cf-4922-4841-8511-68a990a6d7d9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.