I have attached the output i am getting after running the script you mentioned. It says it is sending email but it is never sent.
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
C:\Documents and Settings\Administrator\Desktop>dir
Volume in drive C has no label.
Volume Serial Number is 70EA-E1A5
Directory of C:\Documents and Settings\Administrator\Desktop
02/17/2010 10:53 AM <DIR> .
02/17/2010 10:53 AM <DIR> ..
02/12/2010 10:26 AM 7,934 Customers.CSV
02/12/2010 10:29 AM <DIR> DOWNLOADS
02/17/2010 10:52 AM 4,764 fileRead.php
02/12/2010 09:18 AM <DIR> mibs
02/17/2010 09:20 AM 68,202 My Devices
02/17/2010 11:02 AM 4,757
t2mail.rb
02/11/2010 02:09 PM 1,978 Unbrowse SNMP.lnk
5 File(s) 87,635 bytes
4 Dir(s) 26,905,776,128 bytes free
C:\Documents and Settings\Administrator\Desktop>
t2mail.rb
Loaded the Unbrowse SNMP Trap Server
Starting ..
Listening for traps ..
"Unable to send mail 530 5.7.0 Must issue a STARTTLS command first. 6sm3295407yx
g.30\n"
"Sent email at 2010-02-17 11:14:13 -0700"
stopping the trap receiver
C:/Documents and Settings/Administrator/Desktop/t2mail.rb:157:in `method_missing
': unknown property or method: `Stop' (WIN32OLERuntimeError)
HRESULT error code:0x800706ba
The RPC server is unavailable.
from C:/Documents and Settings/Administrator/Desktop/t2mail.rb:157:in `<
main>'
C:\Documents and Settings\Administrator\Desktop>ruby
t2email.rb
ruby: No such file or directory --
t2email.rb (LoadError)
C:\Documents and Settings\Administrator\Desktop>
t2mail.rb
Loaded the Unbrowse SNMP Trap Server
Starting ..
Listening for traps ..
"Unable to send mail 530 5.7.0 Must issue a STARTTLS command first. 5sm45912ywd.
29\n"
"Sent email at 2010-02-17 11:19:01 -0700"
stopping the trap receiver
C:/Documents and Settings/Administrator/Desktop/t2mail.rb:157:in `method_missing
': unknown property or method: `Stop' (WIN32OLERuntimeError)
HRESULT error code:0x800706ba
The RPC server is unavailable.
from C:/Documents and Settings/Administrator/Desktop/t2mail.rb:157:in `<
main>'
C:\Documents and Settings\Administrator\Desktop>