sending a database record via email

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2008
Posts: 35
Reputation: ricksvoid is an unknown quantity at this point 
Solved Threads: 0
ricksvoid ricksvoid is offline Offline
Light Poster

sending a database record via email

 
0
  #1
Jul 14th, 2009
Im using a gridview to display just the names of the customers in my database.

When i click on a name, I get all of that persons information (address, email, mortgage, ect) displayed nicely in a detailsview control on the right side of my page. I believe that this is what most people refer to as a master/details design.

What i would like to be able to do now is have the ability to email each details record to either one of my salesman via there personal email address.

Im familiar with sending a simple form via email.

  1.  
  2. objMail.send="ricksvoid@yahoo.com"
  3. objMail.body=bodyTxt.text
  4. objMail.subject=subjectTxt.text

My problem is that this doesnt seem to work when tyring to bind the objMail.body to an %eval% field which is basicly a select statenment from my database.

any suggestions??
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 35
Reputation: ricksvoid is an unknown quantity at this point 
Solved Threads: 0
ricksvoid ricksvoid is offline Offline
Light Poster

Re: sending a database record via email

 
0
  #2
Jul 14th, 2009
BTW. an example of what i have so far can be found at www.rickpace79.com/scum2.aspx

If you can think of a way to e-mail the information on the right side of the screen based on a dropmenue of several emails. Then you my friend are a .net lord.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 164
Reputation: dnanetwork has a little shameless behaviour in the past 
Solved Threads: 24
dnanetwork's Avatar
dnanetwork dnanetwork is offline Offline
Junior Poster

Re: sending a database record via email

 
0
  #3
Jul 16th, 2009
search on the internet how to send emails...

in web.config....mention your smtp server...

on button click grab the value of customer from formview..

hope things work out in your case....or else i can send you the code...
Mark the thread as resolved if your problem gets resolved :)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC