You'll need an SMTP server, try Free SMTP server from
http://www.softstack.com/freesmtp.html
require 'net/smtp'
myMessage = <<END_OF_MESSAGE
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: My mail
Message body here
END_OF_MESSAGE
Net::SMTP.start('localhost') do |smtp|
smtp.send_message myMessage, '[EMAIL PROTECTED]',
'[EMAIL PROTECTED]'
end
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Sent: 09 February 2007 01:48 AM
To: [email protected]
Subject: [Wtr-general] Send email from Watir script
Hi,
Is it possible to send an email with test results from Watir script?
Thank you
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6493&messageID=18447#18447
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
**************************************************************************************************************************
Everything in this e-mail and attachments relating to the official business of
MultiChoice Africa is proprietary to
the company. Any view or opinion expressed in this message may be the view of
the individual and should not automatically
be ascribed to the company. If you are not the intended recipient, you may not
peruse, use, disseminate, distribute or
copy this message. If you have received this message in error, please notify
the sender immediately by email, facsimile
or telephone and destroy the original message.
**************************************************************************************************************************
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general