Sending mail in RUBY

Can someone please point me to a simple mail utility for RUBY? I see
that I have both RUBYmail and Tmail in my ruby folder on my hard drive,
but, I can’t find any decent documentation on either. I’m on Windows,
not UNIX. Do I just do a "require" for either to use them? RI yields
nothing about either.

Thanks.

···

--
Posted via http://www.ruby-forum.com/.

Peter Bailey wrote:

Can someone please point me to a simple mail utility for RUBY? I see that I have both RUBYmail and Tmail in my ruby folder on my hard drive, but, I can’t find any decent documentation on either. I’m on Windows, not UNIX. Do I just do a "require" for either to use them? RI yields nothing about either.

Thanks.

Documentation for RubyMail: http://www.lickey.com/rubymail/rubymail/doc/
Documentation for TMail: TMail User Manual

Hope that helps.

-Justin

I found the gem 'mailfactory' to be a simple and terse message generator that outputs MIME, handles attachments and supports text/plain and text/html.

To install it just, assuming you have rubygems installed just do:

  gem install mailfactory

The rdoc that comes with it has an example on the first page which shows you how to use it. Open the rdoc file by looking in wherever rubygems lives on windows.

···

On 14 Jun 2006, at 14:38, Peter Bailey wrote:

Can someone please point me to a simple mail utility for RUBY? I see
that I have both RUBYmail and Tmail in my ruby folder on my hard drive,
but, I can’t find any decent documentation on either. I’m on Windows,
not UNIX. Do I just do a "require" for either to use them? RI yields
nothing about either.

Thanks.

--
Posted via http://www.ruby-forum.com/\.

Justin Collins wrote:

Peter Bailey wrote:

Can someone please point me to a simple mail utility for RUBY? I see
that I have both RUBYmail and Tmail in my ruby folder on my hard drive,
but, I can’t find any decent documentation on either. I’m on Windows,
not UNIX. Do I just do a "require" for either to use them? RI yields
nothing about either.

Thanks.

Documentation for RubyMail: http://www.lickey.com/rubymail/rubymail/doc/
Documentation for TMail: TMail User Manual

Hope that helps.

-Justin

Thanks, Justin. Yes, that helps. I'd seen those web sites before, but,
for whatever reason, the links weren't working. Now I see them, and, I
can read them. . . .

···

--
Posted via http://www.ruby-forum.com/\.

Peter Bailey wrote:

Justin Collins wrote:
  

Peter Bailey wrote:
    

Can someone please point me to a simple mail utility for RUBY? I see that I have both RUBYmail and Tmail in my ruby folder on my hard drive, but, I can’t find any decent documentation on either. I’m on Windows, not UNIX. Do I just do a "require" for either to use them? RI yields nothing about either.

Thanks.

Documentation for RubyMail: http://www.lickey.com/rubymail/rubymail/doc/
Documentation for TMail: TMail User Manual

Hope that helps.

-Justin
    
Thanks, Justin. Yes, that helps. I'd seen those web sites before, but, for whatever reason, the links weren't working. Now I see them, and, I can read them. . . .

Just be aware that those will only format/parse messages and mailboxes. If you want to actually send email you will have to use Net::SMTP or Net::IMAP.

···

--
Daniel Shackelford
Systems Administrator
Technology Services
Spring Arbor University
517 750-6648

Daniel Shackelford wrote:

Peter Bailey wrote:

Thanks.

Thanks, Justin. Yes, that helps. I'd seen those web sites before, but,
for whatever reason, the links weren't working. Now I see them, and, I
can read them. . . .

Just be aware that those will only format/parse messages and mailboxes.
If you want to actually send email you will have to use Net::SMTP or
Net::IMAP.

Yes, thanks. I’ve seen that. But, I’ve tried tmail and when I run the
script, it complains about 'require tmail." So, even though I see it in
my RUBY subdirectories, I don't know if it’s actually installed or not.
With rubymail, I’ve tried running the 3 install instructions that are on
the doc. page, but, nothing happens. It doesn’t know what I’m talking
about. I'll look into SMTP and IMAP. Thanks again.

···

--
Posted via http://www.ruby-forum.com/\.

You can't send mail with IMAP, only SMTP.

···

On Jun 14, 2006, at 10:40 AM, Daniel Shackelford wrote:

Just be aware that those will only format/parse messages and mailboxes. If you want to actually send email you will have to use Net::SMTP or Net::IMAP.

--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com

What is the exact line that you're trying to use?
I am not sure if you have things setup right, but the "require"
statement should look like:

require 'tmail'

(assuming that you have a file called tmail in one of the right
directories).

···

On 6/15/06, Peter Bailey <pbailey@bna.com> wrote:

Yes, thanks. I've seen that. But, I've tried tmail and when I run the
script, it complains about 'require tmail."

--
Garance Alistair Drosehn = drosihn@gmail.com
Senior Systems Programmer
Rensselaer Polytechnic Institute; Troy, NY; USA