hi all i am trying to setup mail option in my app. and when i am trying to send mails i got this error in my production log OpenSSL::SSL::SSLError (hostname was not match with the server certificate): /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/openssl/ssl-internal.rb:123:in `post_connection_check'' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:582:in `tlsconnect'' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:562:in `do_start'' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:525:in `start'' app/controllers/student_controller.rb:373:in `email'' passenger (3.0.9) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'' passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'' passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'' passenger (3.0.9) lib/phusion_passenger/utils.rb:479:in `safe_fork'' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `__send__'' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:180:in `start'' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'' passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'' passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'' passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `__send__'' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'' passenger (3.0.9) helper-scripts/passenger-spawn-server:99 my app runs on rails 2.3.5 what is the problem what should i do to send my mails. Cheers, Kp -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Y4o62sJUneEJ. For more options, visit https://groups.google.com/groups/opt_out.
On 9 October 2012 09:17, keerthi priya <emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi all i am trying to setup mail option in my app. and when i am trying to > send mails i got this error in my production log > > > OpenSSL::SSL::SSLError (hostname was not match with the server certificate):Googling for that error message yields many hits that look as if they might be helpful. Colin -- 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 https://groups.google.com/groups/opt_out.
On Tue, Oct 9, 2012 at 3:17 AM, keerthi priya <emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi all i am trying to setup mail option in my app. and when i am trying to > send mails i got this error in my production log > > > OpenSSL::SSL::SSLError (hostname was not match with the server certificate): > __SNIP__ > my app runs on rails 2.3.5 > what is the problem what should i do to send my mails.TLDR: You: domain.com Them: smtp.domain.com Rails uses: domain.com Rails says: domain.com does not match SSL certificate, actually matches smtp.domain.com. Solution: Use smtp.domain.com or setup your own smtp server with your own SSL certificate. It looks to me like you''re using your domain name when your isp does not have a certificate for your domain on their mail server, what I am saying is that it''s perfectly fine to use domain.com but your ISP probably has smtp.provider.com and you should opt to use smtp.provider.com instead of domain.com because it will cause mismatch domain errors unless you setup your own server and get your own SSL certificate (this is because most ISP''s will not put your certificate on their mail servers it''s just too much trouble.) -- 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 https://groups.google.com/groups/opt_out.
@ Jordon Bedwel i am using gmail smtp. On Tue, Oct 9, 2012 at 2:02 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Oct 9, 2012 at 3:17 AM, keerthi priya > <emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > hi all i am trying to setup mail option in my app. and when i am trying > to > > send mails i got this error in my production log > > > > > > OpenSSL::SSL::SSLError (hostname was not match with the server > certificate): > > __SNIP__ > > my app runs on rails 2.3.5 > > what is the problem what should i do to send my mails. > > TLDR: > You: domain.com > Them: smtp.domain.com > Rails uses: domain.com > Rails says: domain.com does not match SSL certificate, actually > matches smtp.domain.com. > Solution: Use smtp.domain.com or setup your own smtp server with your > own SSL certificate. > > It looks to me like you''re using your domain name when your isp does > not have a certificate for your domain on their mail server, what I am > saying is that it''s perfectly fine to use domain.com but your ISP > probably has smtp.provider.com and you should opt to use > smtp.provider.com instead of domain.com because it will cause mismatch > domain errors unless you setup your own server and get your own SSL > certificate (this is because most ISP''s will not put your certificate > on their mail servers it''s just too much trouble.) > > -- > 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 https://groups.google.com/groups/opt_out. > > >-- 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 https://groups.google.com/groups/opt_out.
i can able to send mails from by development mode the only issue is from production mode On Tue, Oct 9, 2012 at 6:52 PM, keerthi priya <emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> @ > Jordon Bedwel > i am using gmail smtp. > > > On Tue, Oct 9, 2012 at 2:02 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> On Tue, Oct 9, 2012 at 3:17 AM, keerthi priya >> <emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > hi all i am trying to setup mail option in my app. and when i am trying >> to >> > send mails i got this error in my production log >> > >> > >> > OpenSSL::SSL::SSLError (hostname was not match with the server >> certificate): >> > __SNIP__ >> > my app runs on rails 2.3.5 >> > what is the problem what should i do to send my mails. >> >> TLDR: >> You: domain.com >> Them: smtp.domain.com >> Rails uses: domain.com >> Rails says: domain.com does not match SSL certificate, actually >> matches smtp.domain.com. >> Solution: Use smtp.domain.com or setup your own smtp server with your >> own SSL certificate. >> >> It looks to me like you''re using your domain name when your isp does >> not have a certificate for your domain on their mail server, what I am >> saying is that it''s perfectly fine to use domain.com but your ISP >> probably has smtp.provider.com and you should opt to use >> smtp.provider.com instead of domain.com because it will cause mismatch >> domain errors unless you setup your own server and get your own SSL >> certificate (this is because most ISP''s will not put your certificate >> on their mail servers it''s just too much trouble.) >> >> -- >> 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 https://groups.google.com/groups/opt_out. >> >> >> >-- 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 https://groups.google.com/groups/opt_out.
now i am getting this error Timeout::Error (execution expired): /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/timeout.rb:64:in `open'' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:551:in `do_start'' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:551:in `do_start'' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:525:in `start'' On Tue, Oct 9, 2012 at 6:57 PM, keerthi priya <emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i can able to send mails from by development mode the only issue is from > production mode > > > On Tue, Oct 9, 2012 at 6:52 PM, keerthi priya < > emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> @ >> Jordon Bedwel >> i am using gmail smtp. >> >> >> On Tue, Oct 9, 2012 at 2:02 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: >> >>> On Tue, Oct 9, 2012 at 3:17 AM, keerthi priya >>> <emailtokeerthipriya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> > hi all i am trying to setup mail option in my app. and when i am >>> trying to >>> > send mails i got this error in my production log >>> > >>> > >>> > OpenSSL::SSL::SSLError (hostname was not match with the server >>> certificate): >>> > __SNIP__ >>> > my app runs on rails 2.3.5 >>> > what is the problem what should i do to send my mails. >>> >>> TLDR: >>> You: domain.com >>> Them: smtp.domain.com >>> Rails uses: domain.com >>> Rails says: domain.com does not match SSL certificate, actually >>> matches smtp.domain.com. >>> Solution: Use smtp.domain.com or setup your own smtp server with your >>> own SSL certificate. >>> >>> It looks to me like you''re using your domain name when your isp does >>> not have a certificate for your domain on their mail server, what I am >>> saying is that it''s perfectly fine to use domain.com but your ISP >>> probably has smtp.provider.com and you should opt to use >>> smtp.provider.com instead of domain.com because it will cause mismatch >>> domain errors unless you setup your own server and get your own SSL >>> certificate (this is because most ISP''s will not put your certificate >>> on their mail servers it''s just too much trouble.) >>> >>> -- >>> 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 https://groups.google.com/groups/opt_out. >>> >>> >>> >> >-- 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 https://groups.google.com/groups/opt_out.