mail for ASP.NET email smtp mail for ASP.NET email smtp
mail for ASP.NET email smtp

Other Products
mail for ASP.NET email smtp
  "Your product is really amazing...using it everywhere! If you have any other upcoming projects... please let me know! "
Elly
 
   More Testimonies
  Emailing a Datagrid
    

aspNetEmail makes it super simple and easy to email server controls. aspNetEmail will render the control down to its HTML and then mail that content.

For more info on emailing controls, check out the help file here.

     The following example will email this datagrid pulled from the Pubs database. To send yourself this datagrid, simply enter your mailserver address, 'From' email address, and 'To' email address below.

au_idau_lnameau_fnamephoneaddresscitystatezipcontract
172-32-1176WhiteJohnson408 496-722310932 Bigge Rd.Menlo ParkCA94025true
213-46-8915GreenMarjorie415 986-7020309 63rd St. #411OaklandCA94618true
238-95-7766CarsonCheryl415 548-7723589 Darwin Ln.BerkeleyCA94705true
267-41-2394O'LearyMichael408 286-242822 Cleveland Av. #14San JoseCA95128true
274-80-9391StraightDean415 834-29195420 College Av.OaklandCA94609true
341-22-1782SmithMeander913 843-046210 Mississippi Dr.LawrenceKS66044false
409-56-7008BennetAbraham415 658-99326223 Bateman St.BerkeleyCA94705true
427-17-2319DullAnn415 836-71283410 Blonde St.Palo AltoCA94301true
472-27-2349GringlesbyBurt707 938-6445PO Box 792CoveloCA95428true
486-29-1786LocksleyCharlene415 585-462018 Broadway Av.San FranciscoCA94130true
The box is not shipped.
aspNetEmail is a    
downloadable product.
 
aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetEmail
Runner Up ASP.NET Email Control
Voted Runner Up Email Control


aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetEmail
Voted Number 1 ASP.NET Email Control
Voted Best Email Control


aspNetTraceRoute
Voted Runner Up Networking Control
Runner Up - Networking Control

 

Send yourself this datagrid
Simply enter your mail information below.

Mail Server: (ex: mail.mycompany.com)
From Email Address: (ex: from@mycompany.com)
TO Email Address: (ex: to@yourcompany.com)
 

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()