How to email off users details??

J

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 '(e-mail address removed)'.

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.
 
G

Guest

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
 
G

Guest

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.
 

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

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top