From famoreira at gmail.com Thu Oct 23 15:34:28 2008 From: famoreira at gmail.com (Filipe) Date: Thu, 23 Oct 2008 21:34:28 +0200 Subject: [Tmail-talk] ERROR: uninitialized constant Tmail (NameError) Message-ID: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> Hi all, Keep getting the above error using tmail (1.2.3.1) on ruby(ruby 1.8.6 - patchlevel 111) on an ubuntu box. Any would be appreciated, Thank you ________________________ Filipe Moreira Director T?cnico www.coderelax.com 91 101 5544 - 665 284 108 skype: coderelax -------------- next part -------------- An HTML attachment was scrubbed... URL: From raasdnil at gmail.com Thu Oct 23 22:44:30 2008 From: raasdnil at gmail.com (Mikel Lindsaar) Date: Fri, 24 Oct 2008 13:44:30 +1100 Subject: [Tmail-talk] ERROR: uninitialized constant Tmail (NameError) In-Reply-To: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> References: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> Message-ID: <57a815bf0810231944l622f8f98kc43ab128ed03c3d5@mail.gmail.com> On Fri, Oct 24, 2008 at 6:34 AM, Filipe wrote: > Keep getting the above error using tmail (1.2.3.1) on ruby(ruby 1.8.6 - > patchlevel 111) on an ubuntu box. > > Any would be appreciated, Can you post the code sample that caused the error? From famoreira at gmail.com Tue Oct 28 13:58:16 2008 From: famoreira at gmail.com (Filipe) Date: Tue, 28 Oct 2008 18:58:16 +0100 Subject: [Tmail-talk] ERROR: uninitialized constant Tmail (NameError) In-Reply-To: <57a815bf0810231944l622f8f98kc43ab128ed03c3d5@mail.gmail.com> References: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> <57a815bf0810231944l622f8f98kc43ab128ed03c3d5@mail.gmail.com> Message-ID: <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> The code is from an example I've got from the net to try out the library: --> code #!/usr/bin/env ruby require 'rubygems' require 'tmail' mail = Tmail::Mail.new mail.to = 'famoreira at gmail.com' mail.from = 'filipe at coderelax.com' mail.subject = 'Hello World' mail.data = Time.now mail.mime_version = '1.0' mail.set_content_type 'text', 'plain', {'charset' => 'utf-8'} mail.body = 'Mail Body' str = mail.to_s Net::SMTP.start('localhost', 25) do |smtp| smtp.send_message( str, mail.from, mail.to ) end -->code The error is this one: mail.rb:6: uninitialized constant Tmail (NameError) Which looks like some kind of loading problem for me. Thank you very much, Filipe Moreira ________________________ Filipe Moreira Director T?cnico www.coderelax.com 91 101 5544 - 665 284 108 skype: coderelax On Fri, Oct 24, 2008 at 3:44 AM, Mikel Lindsaar wrote: > On Fri, Oct 24, 2008 at 6:34 AM, Filipe wrote: > > Keep getting the above error using tmail (1.2.3.1) on ruby(ruby 1.8.6 - > > patchlevel 111) on an ubuntu box. > > > > Any would be appreciated, > > Can you post the code sample that caused the error? > _______________________________________________ > Tmail-talk mailing list > Tmail-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/tmail-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raasdnil at gmail.com Wed Oct 29 01:26:23 2008 From: raasdnil at gmail.com (Mikel Lindsaar) Date: Wed, 29 Oct 2008 16:26:23 +1100 Subject: [Tmail-talk] ERROR: uninitialized constant Tmail (NameError) In-Reply-To: <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> References: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> <57a815bf0810231944l622f8f98kc43ab128ed03c3d5@mail.gmail.com> <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> Message-ID: <57a815bf0810282226n2ce32337r8a4633f5c59db06e@mail.gmail.com> On Wed, Oct 29, 2008 at 4:58 AM, Filipe wrote: > mail.rb:6: uninitialized constant Tmail (NameError) Yes... it is TMail not Tmail -- http://lindsaar.net/ Rails, RSpec and Life blog.... From burkholp at ncbi.nlm.nih.gov Wed Oct 29 06:05:07 2008 From: burkholp at ncbi.nlm.nih.gov (Peter Burkholder) Date: Wed, 29 Oct 2008 06:05:07 -0400 Subject: [Tmail-talk] ERROR: uninitialized constant Tmail (NameError) In-Reply-To: <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> References: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> <57a815bf0810231944l622f8f98kc43ab128ed03c3d5@mail.gmail.com> <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> Message-ID: On Oct 28, 2008, at 1:58 PM, Filipe wrote: > > mail = Tmail::Mail.new mail = TMail::Mail.new (note capitalized 'M') Always a good idea to try this in 'irb' before writing scripts. You may need a: require 'rubygems' depending on you install. Cheers, Peter > -- Peter Burkholder [Contractor] +1-301-402-7499 burkholp at ncbi.nlm.nih.gov Applications Administrator, NCBI/NLM/NIH From bsdmad at gmail.com Wed Oct 29 03:40:57 2008 From: bsdmad at gmail.com (UEDA Hiroyuki) Date: Wed, 29 Oct 2008 16:40:57 +0900 Subject: [Tmail-talk] ERROR: uninitialized constant Tmail (NameError) In-Reply-To: <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> References: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> <57a815bf0810231944l622f8f98kc43ab128ed03c3d5@mail.gmail.com> <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> Message-ID: <4cb05bee0810290040p54af48b9w78389d4dcb3e3311@mail.gmail.com> Hello, 2008/10/29 Filipe : > The code is from an example I've got from the net to try out the library: > --> code > #!/usr/bin/env ruby > > require 'rubygems' > require 'tmail' > > mail = Tmail::Mail.new mail = TMail::Mail.new is right. -- UEDA "BSD mad" Hiroyuki From famoreira at gmail.com Thu Oct 30 04:18:07 2008 From: famoreira at gmail.com (Filipe) Date: Thu, 30 Oct 2008 09:18:07 +0100 Subject: [Tmail-talk] ERROR: uninitialized constant Tmail (NameError) In-Reply-To: <4cb05bee0810290040p54af48b9w78389d4dcb3e3311@mail.gmail.com> References: <18a9efb90810231234n30b9eda4y3a9dd485a00747f5@mail.gmail.com> <57a815bf0810231944l622f8f98kc43ab128ed03c3d5@mail.gmail.com> <18a9efb90810281058n5a48464oed3dc64dace5dea3@mail.gmail.com> <4cb05bee0810290040p54af48b9w78389d4dcb3e3311@mail.gmail.com> Message-ID: <18a9efb90810300118i2a9e8b92t243471187c359ae7@mail.gmail.com> Thanks a lot guys... Sorry about that. It works great now. _______________________ Filipe Moreira Director T?cnico www.coderelax.com 91 101 5544 - 665 284 108 skype: coderelax On Wed, Oct 29, 2008 at 8:40 AM, UEDA Hiroyuki wrote: > Hello, > > 2008/10/29 Filipe : > > The code is from an example I've got from the net to try out the library: > > --> code > > #!/usr/bin/env ruby > > > > require 'rubygems' > > require 'tmail' > > > > mail = Tmail::Mail.new > > mail = TMail::Mail.new > > is right. > > -- > UEDA "BSD mad" Hiroyuki > _______________________________________________ > Tmail-talk mailing list > Tmail-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/tmail-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: