 |
Send yourself this datagrid
Simply enter your mail information below.
The code used to send this grid, can be found below
[C#]
EmailMessage msg = new EmailMessage( "mail.myCompany.com");
msg.FromAddress = "me@myCompany.com";
msg.To = "You@YourCompany.com";
msg.Subject = "Requested Data";
//build a datagrid
DataGrid dg = new DataGrid();
//have a method called GetDataTAble() that builds a datatable from a database.
dg.DataSource = GetDataTable();
dg.DataBind();
msg.Body = "Hi please review the following data.";
msg.AppendControlToBody( dg );
msg.Send()
[Visual Basic]
Dim msg As New EmailMessage("mail.myCompany.com")
msg.FromAddress = "me@myCompany.com"
msg.To = "You@YourCompany.com"
msg.Subject = "Requested Data"
'build a datagrid
Dim dg As New DataGrid()
'have a method called GetDataTAble() that builds a datatable from a database.
dg.DataSource = GetDataTable()
dg.DataBind()
msg.Body = "Hi please review the following data."
msg.AppendControlToBody(dg)
msg.Send()
|