473,397 Members | 1,974 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,397 software developers and data experts.

How to email off users details??

Jon
Hi all,

I have an array that has 13 elements each containing data (name, address etc).
How would I FIRSTLY place this data in any document/sheet and then SECONDLY
email this document to say 's****@company.com'.

Basically I want the users entered details that exist in an array to be laid
out nicely but plainly in a text document and then automatically sent to a
specified email address.
Can anyone help? Does anyone know of any good links??

Thanks in advance.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200604/1
Apr 21 '06 #1
2 974
The simplest would be to write to a file somewhere. See the FileSystemObject
classes for that. Write you data out to the file, then create a new mail
message object (which I think is now in System.Net.Mail). Attach that file
and send.

Alternatives would be using the builtin Crystal Report tools / writing to
Work or Excel file or purchasing a reporting solutions 3rd party.

The same principles would apply.

~ Steve

"Jon" wrote:
Hi all,

I have an array that has 13 elements each containing data (name, address etc).
How would I FIRSTLY place this data in any document/sheet and then SECONDLY
email this document to say 's****@company.com'.

Basically I want the users entered details that exist in an array to be laid
out nicely but plainly in a text document and then automatically sent to a
specified email address.
Can anyone help? Does anyone know of any good links??

Thanks in advance.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200604/1

Apr 21 '06 #2
Just format the data as text in a string and put it in the body of a mail
message.

Use a StringBuilder to efficiently put the string together. If you want a
fancy mail, you can put html code in the string and send an html mail message.

Use the System.Web.Mail.Mailmessage (1.x) or System.Net.Mail.Mailmessage
(2.0) to create the mail.
Apr 21 '06 #3

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

Similar topics

6
by: \jason via DotNetMonster.com\ | last post by:
currently i am doing a personal website and keep on changing the aspect... finally the finall decision is to have a login page (requirement in asp.net, vb.net) and the login with security part of...
2
by: e_matthes | last post by:
Hello everyone, I am about to implement an authentication system on the site I am building. I don't care much what users choose for their username and password, but I want to verify that users...
3
by: nicjones | last post by:
Apologies if these have already been posted, had a quick search but couldn't find anything. Being a bit of a novice to web design I have 2 quick questions if you'd be so kind guys:- ...
5
by: simononestop | last post by:
Hi im totally new to perl this is my first go at using it (I normally use asp). I have set up a form with a cgi script from demon hosting. I have edited the script and the form works it sends me an...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.