The web testing is not limited to just clicking few links and checking if the controls are working fine. In my job, we do a lot more than that. In one of the recent requirements I got on one of our projects, I had to setup an email notification based on an event. This blog outlines how to do send an (outlook) email with an attachment using Ruby.
Ruby makes life very easy. No programming language can get better than this. The task of sending an email is done in less than 10 lines.
@outlook = WIN32OLE.new('Outlook.Application')
email = @outlook.CreateItem(0)
email.Subject = 'Testing Ruby Automation'
email.Body = 'Things will be rolling if this message reaches!!!'
email.To = 'firstname.lastname@example.org'
If you want to add more recipients, just do this: