In this example I will tell you how you can send the selenium results once the scripts have run. This script should be last script to run. The script will tell you where the results are stored. I am using the BMail to send emails. Bmail is a free but lean command line SMTP mail sender. Don’t get fooled into playing $$$ for huge executables. Bmail allows the user to automate the sending of email messages containing log files, data downloads or error messages on Win32 based computers.
using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;
namespace MailScript
{
[TestFixture]
public class Z_MailResults
{
private ISelenium selenium;
private StringBuilder verificationErrors;
[SetUp]
public void SetupTest()
{
selenium = new DefaultSelenium("localhost", 4444, "*firefox", http://www.google.com.au);
selenium.Start();
verificationErrors = new StringBuilder();
}
[TearDown]
public void TeardownTest()
{
try
{
selenium.Stop();
}
catch (Exception)
{
// Ignore errors if unable to close the browser
}
Assert.AreEqual("", verificationErrors.ToString());
}
[Test]
public void MailResult()
{
var ObjectRef = ObjectReference.GetTestData();
Results.MailFile("@ECHO OFF");
Results.MailFile("c:");
Results.MailFile("cd C:\\Selenium");
Results.MailFile("bmail -s reasydexcp001.corp.regn.net -t ,pavan@seleniumwiki.com -f pavan@seleniumwiki.com -h -a \"Selenium Test Results\" -b \"Hi , At %TIME% on %DATE%, Selenium Regression Tests were run by %USERNAME% in " + and the Results are saved in the following location: \\\\Results\\";
Thread.Sleep(5000);
System.Diagnostics.Process.Start("C:\\selenium\\mailresults.bat");
}
}
}

As I am a newbie to selenium using Java, could you please assist me how do we do the same using Java. As I am keen to learn the same.
Regards
Younus
You can either use Selenium RC or Selenium Webdriver to do run your scripts.
Here are some useful links:
http://www.seleniumwiki.com/software-testing/selenium-rc/sample-selenium-rc-script-using-testng-eclipse/
http://www.seleniumwiki.com/software-testing/selenium-rc-with-java-and-junit/