Analyse SMTP Response


I have an SMTP emailer in Ruby that I need to use to send emails using
my companys SMTP server. The code will be being used on machines that
are not manned (VM’s), so everything needs to be double checked, and
have exceptions for everything. Nothing can be done manually.

The SMTP send code itself works fine, but I want to add a bit to analyse
the SMTP response just to double check it got sent OK.

I have found Net::SMTP::Response, but cant work out how to use it.
Everything I try causes NoMethodError or such errors, but the email
sends OK.

Can anybody shed any light on this? Im 99.9% sure this was working
before I recently updated all of my installed Gems.



Ican you give us an example?