Hey Bret, it's been a long time!
I found a couple of different approaches to this. I'm leaning towards
Tmail (http://tmail.rubyforge.org/), but I haven't spent too much time
on this. It appears that you can send and read emails.
I also noticed that I can also use 'net/smtp' to send emails. I'm not
sure how to read them, though. Here's an example:
####################
require 'watir'
require 'net/smtp'
# Net::SMTP.start('BVTEXS01').send_message(mail.to_s, frommail,
tomail, ccmail)
Net::SMTP.start('email server name') do |smtp|
smtp.send_message message, '[email protected]',
'[email protected]'
end
On Aug 7, 2:37 pm, "[email protected]" <[email protected]>
wrote:
> Hi there. I've been away for a while, but am now back.
>
> I would like to automate email testing. Mainly make sure the right
> emails were sent.
>
> I guess what I want is to set up an email server in our lab, configure
> our app to send emails to it, and then my scripts can access it to
> make sure that the right email was delivered.
>
> I've done this before with Rails, and with that you can just put the
> email sender in test mode and validate it against directly. It works
> great, but is not an option for me right now.
>
> Is any one else doing something like this? What are you using? Is
> there an open-source testing-email-server I could use? Obviously, I
> want to be able to access it from Ruby.
>
> Bret
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---