Sending text format email using SmtpMail

G

Guest

Hi,

I have a table with in MS SQL database. A table consist a list of items
bought by a customer with, item prices, item nubers etc. I would like to send
an email with a list of items in the order in a text format file (not html
format using BodyFormat = MailFormat.Html). I am using stored procedure to
get data to a datagrid on a web page. But do not know how to format a result
from a stored procedure to a text string.

Somebody can help me?
 
G

Guest

use a repeater perhaps, or just loop through the returning DS and manually
write out the values (for i=0 to DS.Tables(0).Rows.Count)
 
G

Guest

Thanks a lot. It almost works :) >> should be DS.Tables(0).Rows.Count - 1

I appreciate your help!

Jakub Bauer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top