hi, I have a little problem with actionmailer 2.0.2 The problem is that I am trying to send mails and development.log says that everything is ok but I can''t find any mails in my mailbox. I checked my sendmail with PHP function "mail()" - works nice. /var/log/mail.log don''t drop any lines when sending mails with actionmailer. So in conclusion no errors and no way to check where delivery fails. Could you help me with this? -- 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 -~----------~----~----~----~------~----~------~--~---
There''s many options to send email using action mailer : [1] You can use gmail account for your action mailer Read it : http://teapoci.blogspot.com/2008/04/action-mailer-with-gmail-or-another.html [2] You can use email domain, the way is the same like above you only change it : :address => "smtp.yourdomain.com", :port => 25, # default is 25 but you can use also 26 :domain => ''yourdomain.com'', :user_name => "your_username-FBj3rGVNSac4Q++5jOxPmw@public.gmane.org", [3] If you are using linux OS, the last line paste it in config/environment.rb: ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.perform_deliveries = true ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.default_charset = "utf-8" [4] Some times this script is never working or never sending email any more : ActionMailer::Base.smtp_settings = { :address => ''smtp.domain.com'', # default: localhost :port => ''25'', # default: 25 :authentication => :plain, # :plain, :login or :cram_md5 :user_name => ''teapoci'', :password => ''xxxxxx'' } I not recommend you for option no. 4, because it never works to me too. Have nice try. Enjoy, Reinhart http://teapoci.blogspot.com -- 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 -~----------~----~----~----~------~----~------~--~---
> [3] If you are using linux OS, the last line paste it in > config/environment.rb: > > ActionMailer::Base.delivery_method = :sendmail > ActionMailer::Base.perform_deliveries = true > ActionMailer::Base.raise_delivery_errors = true > ActionMailer::Base.default_charset = "utf-8"The configuration in my environment.rb is the same as here. No solution yet... -- 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 -~----------~----~----~----~------~----~------~--~---
On 20 Apr 2008, at 17:59, Kr Alfabeta wrote:> > >> [3] If you are using linux OS, the last line paste it in >> config/environment.rb: >> >> ActionMailer::Base.delivery_method = :sendmail >> ActionMailer::Base.perform_deliveries = true >> ActionMailer::Base.raise_delivery_errors = true >> ActionMailer::Base.default_charset = "utf-8" > > The configuration in my environment.rb is the same as here. No > solution > yet...Is sendmail where rails expects it to be? By default it looks for it at /usr/sbin/sendmail, you can change that by setting ActionMailer::Base.sendmail_settings[:location] Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> Is sendmail where rails expects it to be? By default it looks for it > at /usr/sbin/sendmail, you can change that by setting > ActionMailer::Base.sendmail_settings[:location] > > Fredx28:/home/xxx# locate sendmail /usr/lib/sendmail /usr/sbin/sendmail -- 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 -~----------~----~----~----~------~----~------~--~---
More info: my rails application runs under apache but when I run it by default with ./script/server (WEBrick) actionmailer WORKS. Where is the problem? permissions? -- 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 -~----------~----~----~----~------~----~------~--~---
Kr Alfabeta wrote:> More info: my rails application runs under apache but when I run it by > default with ./script/server (WEBrick) actionmailer WORKS. > > Where is the problem? permissions?Solved. permissions. thank you for trying -- 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 -~----------~----~----~----~------~----~------~--~---
Sometimes port 25/26 is blocked to send email, and some email providers are refusing to receive email from port 25 that uses localhost smtp. Yahoo and Gmail are the most email provider that is not too extrem in filtering incoming email. Another reason, your email isn''t delivered well is your header or format of sendemail. Checkout your development.log, if there is 200K OK, or notification that actionmailer was working but you still cant receive email. it means that your problem is from your localhost. Maybe your internet provider is blocking or dont want send you email from localhost port 25 or 26. Reinhart http://teapoci.blogspot.com -- 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 -~----------~----~----~----~------~----~------~--~---
Visit Indonesia 2008 wrote:> Yahoo and Gmail are the most email provider that is not too extrem in > filtering incoming email.CORRECTION: Yahoo and Gmail are the most email provider that ARE TOO extrem in filtering incoming email. Nowdays spam issue is the top issue in emailing or between email providers. reinhart -- 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 -~----------~----~----~----~------~----~------~--~---
What permissions did you have to change? Kr Alfabeta wrote:> Kr Alfabeta wrote: >> More info: my rails application runs under apache but when I run it by >> default with ./script/server (WEBrick) actionmailer WORKS. >> >> Where is the problem? permissions? > > Solved. permissions. thank you for trying-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Kr Alfabeta wrote:> Kr Alfabeta wrote: >> More info: my rails application runs under apache but when I run it by >> default with ./script/server (WEBrick) actionmailer WORKS. >> >> Where is the problem? permissions? > > Solved. permissions. thank you for tryingI also have this problem. Mail is sent with script/server, but not when running thin. What permissions did you change to solve this? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.