Hello Bret, I'm doing email testing on our web based monitoring cards. Currently using a tweaked version of the Python mock SMTP server - mailsink.py. It displays the emails in the console and you can save them to a log file as well. I'm reading the log file with Ruby to validate the message content. The tweak adds message count and time stamp
Using it with Python 2.5.2 Usage: C:\>Python25\Python.exe C:\Python_SMTP_Server\mailsink.py test 1.2.3.2 Where: "test" is a log file that will contains the transactions. 1.2.3.2 = Host PC (Put your PC IP here) C:\Python_SMTP is the location of the script I can email the tweaked mailsink.py if you'd like. Darryl On Aug 7, 6:24 pm, George <[email protected]> wrote: > 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. > > 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 -~----------~----~----~----~------~----~------~--~---
