hi, is there a way i can configure my localhost to receive email using smtp? i can out emails fine but now would like to test/get-to-know how to handle incoming emails. if on my localhost:3000, do i do anything like below? ActionMailer::Base.server_settings = { :address=>''smtp.yourserver.com'', # default: localhost :port=>''25'', # default: 25 :user_name=>''user'', :password=>''pass'', :authentication=>:plain # :plain, :login or :cram_md5 } what do i use as an email address? thanks -- 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 -~----------~----~----~----~------~----~------~--~---
Nicholas Wieland
2007-Mar-06 00:59 UTC
Re: configure actionmailer to recieve email on localhost?
Il giorno 03/mar/07, alle ore 17:07, mixplate ha scritto:> > hi, is there a way i can configure my localhost to receive email using > smtp? i can out emails fine but now would like to test/get-to-know how > to handle incoming emails. > > if on my localhost:3000, do i do anything like below? > > ActionMailer::Base.server_settings = { > > :address=>''smtp.yourserver.com'', # default: localhost > :port=>''25'', # default: 25 > :user_name=>''user'', > :password=>''pass'', > :authentication=>:plain # :plain, :login or :cram_md5 > } > > > > what do i use as an email address?Rails doesn''t care frome where you get your emails, you just have to forward them using script/runner YourMailer.receive(email) or more probably YourMailer.receive(STDIN.read). Personally I use getmail, you can find some docs on the wiki. The code you posted is for _sending_ emails. Receiving with SMTP is quite hard, you need POP3/imap. Have fun ! ngw --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rajesh Shetty
2007-Mar-06 01:19 UTC
Re: configure actionmailer to recieve email on localhost?
mixplate wrote:> hi, is there a way i can configure my localhost to receive email using > smtp? i can out emails fine but now would like to test/get-to-know how > to handle incoming emails. > > if on my localhost:3000, do i do anything like below? > > ActionMailer::Base.server_settings = { > > :address=>''smtp.yourserver.com'', # default: localhost > :port=>''25'', # default: 25 > :user_name=>''user'', > :password=>''pass'', > :authentication=>:plain # :plain, :login or :cram_md5 > } > > > > what do i use as an email address? > > > thanksIf you are using unix based os (including Mac OSX), you can use ActionMailer::Base.delivery_method = :sendmail and configure your sendmail to send emails out (on Mac OSX by default sendmail is disabled, you will have to enable it) -- 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 -~----------~----~----~----~------~----~------~--~---
Jodi Showers
2007-Mar-06 02:22 UTC
Re: configure actionmailer to recieve email on localhost?
On 5-Mar-07, at 7:59 PM, Nicholas Wieland wrote:> > Il giorno 03/mar/07, alle ore 17:07, mixplate ha scritto: > >> >> hi, is there a way i can configure my localhost to receive email >> using >> smtp? i can out emails fine but now would like to test/get-to-know >> how >> to handle incoming emails. >> >> if on my localhost:3000, do i do anything like below? >> >> ActionMailer::Base.server_settings = { >> >> :address=>''smtp.yourserver.com'', # default: localhost >> :port=>''25'', # default: 25 >> :user_name=>''user'', >> :password=>''pass'', >> :authentication=>:plain # :plain, :login or :cram_md5 >> } >> >> >> >> what do i use as an email address? > > Rails doesn''t care frome where you get your emails, you just have to > forward them using script/runner YourMailer.receive(email) or more > probably YourMailer.receive(STDIN.read). > Personally I use getmail, you can find some docs on the wiki. > The code you posted is for _sending_ emails. > Receiving with SMTP is quite hard, you need POP3/imap. > > Have fun ! > ngw >If you''re on osx, and trying to pop gmail (a narrow set of choices?), this reference may help: http://involution.com/2006/07/20/access- gmail-from-ruby-using-netpop3-and-stunnel/ cheers, Jodi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---