> @full_message = <<MESSAGE_END > To: t...@gmail.com > Subject: its working! > > > This is a sample message > > MESSAGE_END
So the above is your text.rb message? > @sent=0 > smtp = Net::SMTP.new('smtp.gmail.com', 25) > smtp.enable_starttls > > smtp.start('mail.google.com',username, password, :login) do |smtp| > if @sent==0 > smtp.send_message @full_message, 'from-addr...@example.com', > ['t...@email.com'] > @sent=1 > end > end The above code, where is this stored? is it in the development.rb? is this all it is or is it incased in a method? Appreciate the help. 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.