473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Sending text format email using SmtpMail

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?
Nov 19 '05 #1
2 2346
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)

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"jakub.bauer" wrote:
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?

Nov 19 '05 #2
Thanks a lot. It almost works :-) >> should be DS.Tables(0).Rows.Count - 1

I appreciate your help!

Jakub Bauer
"Curt_C [MVP]" wrote:
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)

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"jakub.bauer" wrote:
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?

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: VB Programmer | last post by:
My company has it's own webserver, which is going to host our ASP.NET web application. We want the website to be able to send out emails. 1. What do I need on the server so that it has the...
2
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
1
by: David Dvali | last post by:
Hello. I have a problem with sending Unicode text in mail message. So what I do: First of all I have some template file like this: ================================= <html> <head><title>Test...
6
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
2
by: ChrisA | last post by:
I'm sending email from my ASP.NET 1.1 app, and it works fine providing the BodyFormat of the System.Web.Mail.MailMessage is set to Text. If I change to Html format, it breaks. Here's the code: ...
7
by: Ray Booysen | last post by:
Hi all I'm sending email via ASP.NET in HTML mode. Each email has exactly one attachment and I do have full access to the SMTP server. However, if I send the email in HTML format, the...
2
by: RAB | last post by:
I have a .aspx page with the following code: <% @Import Namespace="System.Web.Mail" %> <%@ page language="vb" debug="true" runat="server" %> <script runat="server"> Sub Click(sender as...
7
by: Santosh | last post by:
Dear all, i am wrtiing following code for the sending email from the my asp application when i am working on the local machine i will work fine ans send email on the mentioned address. but when i...
5
by: rahees | last post by:
i am sending mail using vb code. the contents are in arabic. when recieving in yahoo account its shows only question marks. but it shows right in gmail account. plz help me.. advance thanks... My...
3
by: raj200809 | last post by:
when i m sending mail i received error from symantec Antivirus" Your email message was unable to be sent because your mail server rejected the message 550-5.7.1 the ip you’re using to send mail is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.