I have used this code for sending mail, but i didn''t get the mail from this *require ''rubygems''* *require ''mail''* * * * * * mail = Mail.new* * mail[''from''] = ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* * mail[:to] = @business.email* * mail.subject = ''This is a test email''* * puts "..#{mail.to_s}"* After this code execution i got like this, then why this not getting in mail inbox...? *From: mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org * *To: vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org* *Message-ID: <4fcc69739a98b_de525ce13a65402-WjskPtBgGMHwwNc1L8eyVw@public.gmane.org>* *Subject: This is a test email* *Mime-Version: 1.0* *Content-Type: text/plain* *Content-Transfer-Encoding: 7bit* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/HhrVSoztLVAJ. 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.
I dont know about that gem, but I dont see anything like mail.send! Look into the docs and look up which function you have to call for sending the message. Am 04.06.2012 10:02 schrieb "amruby" <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> I have used this code for sending mail, but i didn''t get the mail from this > > *require ''rubygems''* > *require ''mail''* > * > * > * * > * mail = Mail.new* > * mail[''from''] = ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* > * mail[:to] = @business.email* > * mail.subject = ''This is a test email''* > * puts "..#{mail.to_s}"* > > After this code execution i got like this, then why this not getting in > mail inbox...? > > *From: mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org > * > *To: vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org* > *Message-ID: <4fcc69739a98b_de525ce13a65402-WjskPtBgGMHwwNc1L8eyVw@public.gmane.org>* > *Subject: This is a test email* > *Mime-Version: 1.0* > *Content-Type: text/plain* > *Content-Transfer-Encoding: 7bit* > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/HhrVSoztLVAJ. > 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. >-- 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.
On Monday, 4 June 2012 04:36:33 UTC-4, Norbert Melzer wrote:> > I dont know about that gem, but I dont see anything like mail.send! Look > into the docs and look up which function you have to call for sending the > message. >yes i have edited the code like this * mail = Mail.new do* * from ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* * to ''#{@business.email}''* * subject ''Here is the image you wanted''* * body ''body''* * * *end* *mail.delivery_method :sendmail* *mail.deliver* * * Now i got the error like this * * * * Errno::EPIPE in BusinessesController#create Broken pipe * * * *> Am 04.06.2012 10:02 schrieb "amruby" <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > >> I have used this code for sending mail, but i didn''t get the mail from >> this >> >> *require ''rubygems''* >> *require ''mail''* >> * >> * >> * * >> * mail = Mail.new* >> * mail[''from''] = ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* >> * mail[:to] = @business.email* >> * mail.subject = ''This is a test email''* >> * puts "..#{mail.to_s}"* >> >> After this code execution i got like this, then why this not getting in >> mail inbox...? >> >> *From: mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org >> * >> *To: vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org* >> *Message-ID: <4fcc69739a98b_de525ce13a65402-WjskPtBgGMHwwNc1L8eyVw@public.gmane.org>* >> *Subject: This is a test email* >> *Mime-Version: 1.0* >> *Content-Type: text/plain* >> *Content-Transfer-Encoding: 7bit* >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-talk/-/HhrVSoztLVAJ. >> 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. >> >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/bybJXm2oHRIJ. 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.
can you post the role stack fo errors please. At first everything seems ok. I''m gessing that maybe just some configuration error. If you can''t resolve with that gem the ActionMailer gem doesn''t solve your problem? There is a good documentation of the ActionMailer here http://guides.rubyonrails.org/action_mailer_basics.html att, 2012/6/4 amruby <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> > > On Monday, 4 June 2012 04:36:33 UTC-4, Norbert Melzer wrote: >> >> I dont know about that gem, but I dont see anything like mail.send! Look >> into the docs and look up which function you have to call for sending the >> message. >> > yes i have edited the code like this > > > * mail = Mail.new do* > * from ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* > * to ''#{@business.email}''* > * subject ''Here is the image you wanted''* > * body ''body''* > * * > *end* > *mail.delivery_method :sendmail* > *mail.deliver* > * > * > Now i got the error like this > * > * > * * > Errno::EPIPE in BusinessesController#create > > Broken pipe > > * > * > * > * > > > > > >> Am 04.06.2012 10:02 schrieb "amruby" <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> >>> I have used this code for sending mail, but i didn''t get the mail from >>> this >>> >>> *require ''rubygems''* >>> *require ''mail''* >>> * >>> * >>> * * >>> * mail = Mail.new* >>> * mail[''from''] = ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* >>> * mail[:to] = @business.email* >>> * mail.subject = ''This is a test email''* >>> * puts "..#{mail.to_s}"* >>> >>> After this code execution i got like this, then why this not getting in >>> mail inbox...? >>> >>> *From: mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org >>> * >>> *To: vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org* >>> *Message-ID: <4fcc69739a98b_de525ce13a65402-WjskPtBgGMHwwNc1L8eyVw@public.gmane.org>* >>> *Subject: This is a test email* >>> *Mime-Version: 1.0* >>> *Content-Type: text/plain* >>> *Content-Transfer-Encoding: 7bit* >>> >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ruby on Rails: Talk" group. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/rubyonrails-talk/-/**HhrVSoztLVAJ<https://groups.google.com/d/msg/rubyonrails-talk/-/HhrVSoztLVAJ> >>> . >>> To post to this group, send email to rubyonrails-talk@googlegroups.**com<rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> To unsubscribe from this group, send email to >>> rubyonrails-talk+unsubscribe@**googlegroups.com<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> For more options, visit this group at http://groups.google.com/** >>> group/rubyonrails-talk?hl=en<http://groups.google.com/group/rubyonrails-talk?hl=en> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/bybJXm2oHRIJ. > > 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. >-- Pedro Henrique de Souza Medeiros ---------------------------------- Cel: +55 (61) 9197-0993 Email: pedrosnk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Beautiful is better than ugly, Explicit is better than implicit, Simple is better than complex, Complex is better than complicated. The Zen of Python, by Tim Peters -- 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.
On Monday, 4 June 2012 09:40:52 UTC-4, Pedro Medeiros wrote:> > can you post the role stack fo errors please. > > At first everything seems ok. I''m gessing that maybe just some > configuration error. > > If you can''t resolve with that gem the ActionMailer gem doesn''t solve your > problem? There is a good documentation of the ActionMailer here > http://guides.rubyonrails.org/action_mailer_basics.html > > > Finally i got it, when using via SMTP like this*environment.rb* * * ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => ''your.host.name'', :user_name => ''username'', :password => ''password'', :authentication => ''plain'', :enable_starttls_auto => true }> att, > > 2012/6/4 amruby <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> >> >> On Monday, 4 June 2012 04:36:33 UTC-4, Norbert Melzer wrote: >>> >>> I dont know about that gem, but I dont see anything like mail.send! Look >>> into the docs and look up which function you have to call for sending the >>> message. >>> >> yes i have edited the code like this >> >> >> * mail = Mail.new do* >> * from ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* >> * to ''#{@business.email}''* >> * subject ''Here is the image you wanted''* >> * body ''body''* >> * * >> *end* >> *mail.delivery_method :sendmail* >> *mail.deliver* >> * >> * >> Now i got the error like this >> * >> * >> * * >> Errno::EPIPE in BusinessesController#create >> >> Broken pipe >> >> * >> * >> * >> * >> >> >> >> >> >>> Am 04.06.2012 10:02 schrieb "amruby" <vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >>> >>>> I have used this code for sending mail, but i didn''t get the mail from >>>> this >>>> >>>> *require ''rubygems''* >>>> *require ''mail''* >>>> * >>>> * >>>> * * >>>> * mail = Mail.new* >>>> * mail[''from''] = ''mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org''* >>>> * mail[:to] = @business.email* >>>> * mail.subject = ''This is a test email''* >>>> * puts "..#{mail.to_s}"* >>>> >>>> After this code execution i got like this, then why this not getting in >>>> mail inbox...? >>>> >>>> *From: mail-kgz7nH0QluXQT0dZR+AlfA@public.gmane.org >>>> * >>>> *To: vgrkrishnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org* >>>> *Message-ID: <4fcc69739a98b_de525ce13a65402-WjskPtBgGMHwwNc1L8eyVw@public.gmane.org>* >>>> *Subject: This is a test email* >>>> *Mime-Version: 1.0* >>>> *Content-Type: text/plain* >>>> *Content-Transfer-Encoding: 7bit* >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Ruby on Rails: Talk" group. >>>> To view this discussion on the web visit https://groups.google.com/d/** >>>> msg/rubyonrails-talk/-/**HhrVSoztLVAJ<https://groups.google.com/d/msg/rubyonrails-talk/-/HhrVSoztLVAJ> >>>> . >>>> To post to this group, send email to rubyonrails-talk@googlegroups.** >>>> com <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. >>>> To unsubscribe from this group, send email to >>>> rubyonrails-talk+unsubscribe@**googlegroups.com<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>>> . >>>> For more options, visit this group at http://groups.google.com/** >>>> group/rubyonrails-talk?hl=en<http://groups.google.com/group/rubyonrails-talk?hl=en> >>>> . >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-talk/-/bybJXm2oHRIJ. >> >> 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. >> > > > > -- > Pedro Henrique de Souza Medeiros > ---------------------------------- > Cel: +55 (61) 9197-0993 > Email: pedrosnk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > Beautiful is better than ugly, > Explicit is better than implicit, > Simple is better than complex, > Complex is better than complicated. > > The Zen of Python, by Tim Peters > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/UhJJqEt3SzgJ. 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.