I''m getting ready to sign up with DreamHost, but my application is missing the ActionMailer features. First, can anyone provide some real code to send an email upon comment submission? Second, is it easy to setup ActionMailer on a DreamHost server? Thanks! -- Posted via http://www.ruby-forum.com/.
ryan > Second, is it easy to setup ActionMailer on a DreamHost server? Yes it is : 1/create a mail user amailusername/amailpassword 2/In environment.rb, add code like this: ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "mail.myfoorailsapp.mydomain.net" , :port => 587 , :domain => "myfoorailsapp.mydomain.net" , :authentication => :login , :user_name => "amailusername" , :password => "amailpassword" , } ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_charset = "utf-8" Alain
And don''t forget that the Rails community has generously provided DreamHost promo codes to get the maximum amount off http://wiki.rubyonrails.org/rails/pages/DreamhostRailsPromoCodes Cheers, ~William http://www.railshosting.org -- Posted via http://www.ruby-forum.com/.
Alain Ravet wrote:> ryan > > > > Second, is it easy to setup ActionMailer on a DreamHost server? > > Yes it is : > 1/create a mail user > amailusername/amailpassword > > 2/In environment.rb, add code like this: > > ActionMailer::Base.delivery_method = :smtp > ActionMailer::Base.server_settings = { > :address => "mail.myfoorailsapp.mydomain.net" , > :port => 587 , > :domain => "myfoorailsapp.mydomain.net" , > :authentication => :login , > :user_name => "amailusername" , > :password => "amailpassword" , > } > ActionMailer::Base.perform_deliveries = true > ActionMailer::Base.default_charset = "utf-8" > > > AlainI cannot get this to work. No errors either, I just never get any mail received in my tests. For the login, should I use mXXXXX or the user-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org? I''ve tried both but am curious if one is correct over the other. -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
port 587 is for secure smtp, and I don''t know if dreamhost supports this, try changing port to 25, also the user should be user-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org On 4/6/07, Arch Stanton <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Alain Ravet wrote: > > ryan > > > > > > > Second, is it easy to setup ActionMailer on a DreamHost server? > > > > Yes it is : > > 1/create a mail user > > amailusername/amailpassword > > > > 2/In environment.rb, add code like this: > > > > ActionMailer::Base.delivery_method = :smtp > > ActionMailer::Base.server_settings = { > > :address => "mail.myfoorailsapp.mydomain.net" , > > :port => 587 , > > :domain => "myfoorailsapp.mydomain.net" , > > :authentication => :login , > > :user_name => "amailusername" , > > :password => "amailpassword" , > > } > > ActionMailer::Base.perform_deliveries = true > > ActionMailer::Base.default_charset = "utf-8" > > > > > > Alain > > I cannot get this to work. No errors either, I just never get any mail > received in my tests. > > For the login, should I use mXXXXX or the user-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org? I''ve tried > both but am curious if one is correct over the other. > > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dutch Rapley wrote:> port 587 is for secure smtp, and I don''t know if dreamhost supports > this, > try changing port to 25, also the user should be user-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.orgThanks. I finally got this combination working: ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "mail.myfoorailsapp.mydomain.net" :port => 587 :domain => "myfoorailsapp.mydomain.net" :authentication => "user-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org" :user_name => "amailusername" :password => "amailpassword" } ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_charset = "utf-8" -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---