943,845 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 778
  • ASP.NET RSS
Jul 14th, 2009
0

sending a database record via email

Expand Post »
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.

vb.net Syntax (Toggle Plain Text)
  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??
Similar Threads
Reputation Points: 9
Solved Threads: 0
Light Poster
ricksvoid is offline Offline
39 posts
since May 2008
Jul 14th, 2009
0

Re: sending a database record via email

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.
Reputation Points: 9
Solved Threads: 0
Light Poster
ricksvoid is offline Offline
39 posts
since May 2008
Jul 16th, 2009
0

Re: sending a database record via email

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...
Reputation Points: 28
Solved Threads: 106
Banned
dnanetwork is offline Offline
633 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: asp.net calendar control
Next Thread in ASP.NET Forum Timeline: How to Validate multiple textboxes using Required field / javascript function





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC