Has anyone successfully sent a mail from AM through google''s smtp? in environment.rb I have: # Include your app''s configuration here: ActionMailer::Base.server_settings = { :address => "smtp.gmail.com <http://smtp.gmail.com>", :port => 587, :domain => ''www.mydomain.com <http://www.mydomain.com>'', :user_name => "<a href=''mymail-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org''>mymail-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org</a>", :password => "password", :authentication => :login } I ask because I don''t have access to a mail server, have a gmail account though and want to try out action mailer. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Why is your :user_name formatted with HTML? - james On 11/21/05, Adam Groves <adam.groves-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Has anyone successfully sent a mail from AM through google''s smtp? > > in environment.rb I have: > > > # Include your app''s configuration here: > ActionMailer::Base.server_settings = { > :address => "smtp.gmail.com", > :port => 587, > :domain => '' www.mydomain.com'', > :user_name => "<a > href=''mymail-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org''>mymail-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org</a>", > :password => "password", > :authentication => :login > } > > I ask because I don''t have access to a mail server, have a gmail account > though and want to try out action mailer. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Hi, Try this. Install a mail server on your machine. on my winxp based machine i installed the following mail server: http://www.youngzsoft.net/cmailserver/email-server-download.htm create an account : test-FBj3rGVNSac4Q++5jOxPmw@public.gmane.org with secret password then use following settings :smpt &&&& [see ur cmail server tools -> configuration] address - localhost port - 25 domain - yourdomain.com authenticate - login user_name - test password - secret This works. Hope this helps. -- Posted via http://www.ruby-forum.com/.
AFAIK, you can''t use GMail''s SMTP with AM, because it communicates through the SSL layer (see GMail''s help on how to setup thunderbird, for instance). -- Posted via http://www.ruby-forum.com/.
andremedeiros wrote:> AFAIK, you can''t use GMail''s SMTP with AM, because it communicates > through the SSL layer (see GMail''s help on how to setup thunderbird, for > instance).yeah, André Medeiros is right... gmail''s smtp server only accepts TLS connections... let''s extend AM to make this happen? any rails guru around to help on this? :-) hehe -- Posted via http://www.ruby-forum.com/.
Why not setup a local MTA to talk to GMail for you? My little brother wrote a howto if you''re on *NIX: http://typo.submonkey.net/articles/2005/09/09/use-gmail-as-a-smart-host On 23/11/05, André Camargo <andreribeirocamargo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> andremedeiros wrote: > > AFAIK, you can''t use GMail''s SMTP with AM, because it communicates > > through the SSL layer (see GMail''s help on how to setup thunderbird, for > > instance). > > yeah, André Medeiros is right... gmail''s smtp server only accepts TLS > connections... > > let''s extend AM to make this happen? > > any rails guru around to help on this? :-) hehe > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/
Deepak Surti wrote:> then use following settings > > :smpt > > &&&& [see ur cmail server tools -> configuration] > > address - localhost > port - 25 > domain - yourdomain.com > authenticate - login > user_name - test > password - secret > > This works. Hope this helps.I did this and added the following to my environment.rb file, _inside_ the Rails::Initializer.run do |config| block: #Mail Server Settings config.action_mailer.server_settings = {:address => ''localhost'', :port => 25, :domain => ''mydomain.com'', :user_name => ''user'', :password => ''password'', :authentication => ''plain''} Would you expect this to work? Does this section need to be set up with ActionMailer::Base.server_settings = {...}? My development log seems to think that the mail is being sent but it isn''t going through. Thanks, Wes -- 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 -~----------~----~----~----~------~----~------~--~---
marston-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org
2007-Jan-29 09:34 UTC
Re: ActionMailer and Gmail
Interesting, please let me know if this works for you. For me I haven''t had such luck, I''m using Google Domain Apps for my domain. At the moment I just have Rails talk to the local postfix install which then simply smartrelay''s over SSL to smtp.gmail.com. There seems to be issues configuring it from within the rails app due to gmail''s security requirements for logins? Though I''d love to get this working straight from my rails app. On Jan 29, 7:07 am, Wes Gamble <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Deepak Surti wrote: > > then use following settings > > > :smpt > > > &&&& [see ur cmail server tools -> configuration] > > > address - localhost > > port - 25 > > domain - yourdomain.com > > authenticate - login > > user_name - test > > password - secret > > > This works. Hope this helps.I did this and added the following to my environment.rb file, _inside_ > the Rails::Initializer.run do |config| block: > > #Mail Server Settings > config.action_mailer.server_settings = {:address => ''localhost'', > :port => 25, > :domain => ''mydomain.com'', > :user_name => ''user'', > :password => ''password'', > :authentication => ''plain''} > > Would you expect this to work? > > Does this section need to be set up with > ActionMailer::Base.server_settings = {...}? > > My development log seems to think that the mail is being sent but it > isn''t going through. > > Thanks, > Wes > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Hey mate, If your development is on a mac, go to your terminal and run mail. If mail isnt getting sent out it will tell you why in there. Cheers, Carl. On 1/29/07, marston-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org <marston-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org> wrote:> > Interesting, please let me know if this works for you. For me I > haven''t had such luck, I''m using Google Domain Apps for my domain. At > the moment I just have Rails talk to the local postfix install which > then simply smartrelay''s over SSL to smtp.gmail.com. There seems to > be issues configuring it from within the rails app due to gmail''s > security requirements for logins? Though I''d love to get this working > straight from my rails app. > > On Jan 29, 7:07 am, Wes Gamble <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > Deepak Surti wrote: > > > then use following settings > > > > > :smpt > > > > > &&&& [see ur cmail server tools -> configuration] > > > > > address - localhost > > > port - 25 > > > domain - yourdomain.com > > > authenticate - login > > > user_name - test > > > password - secret > > > > > This works. Hope this helps.I did this and added the following to my environment.rb file, _inside_ > > the Rails::Initializer.run do |config| block: > > > > #Mail Server Settings > > config.action_mailer.server_settings = {:address => ''localhost'', > > :port => 25, > > :domain => ''mydomain.com'', > > :user_name => ''user'', > > :password => ''password'', > > :authentication => ''plain''} > > > > Would you expect this to work? > > > > Does this section need to be set up with > > ActionMailer::Base.server_settings = {...}? > > > > My development log seems to think that the mail is being sent but it > > isn''t going through. > > > > Thanks, > > Wes > > > > -- > > Posted viahttp://www.ruby-forum.com/. > > > > >-- Carl Woodward 0412218979 cjwoodward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---