Skip to content

Instantly share code, notes, and snippets.

@djangofan
Created May 29, 2012 04:59
Show Gist options
  • Save djangofan/2822641 to your computer and use it in GitHub Desktop.
Save djangofan/2822641 to your computer and use it in GitHub Desktop.
Code to send the email
// this method can be within any of the classes belonging to the
// group running from the suite, as configured in your testng.xml file
@AfterSuite(alwaysRun = true)
public void tearDown() throws Exception {
SendResults sr = new SendResults("frommail@gmail.com", "tomail@gmail.com", "Title email", "Message");
sr.sendTestNGResult();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment