This is a discussion on "Sending Mail, Body message from database" within the Classic ASP section. This forum, and the thread "Sending Mail, Body message from database are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Sending Mail, Body message from database
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Sending Mail, Body message from database
hi everyone!
i have to send a mail using asp wherein in Body part some of the data will be retrieved from the database. how will i retrieved all records for example it has 5 records per person? do i have to put the ff: Mail.Body = do while not rs.eof... Mail.Body = Mail.Body & ..... Mail.Send ---------------- please help. thanks. |
|
|
|
|||
|
Re: Sending Mail, Body message from database
If you've got 5 records for person, I'd think you'd need one loop for each person, then a further loop inside that for each record. For example, in pseudocode:
Regards, -Mark View my web development blog |
|
|||
|
Re: Sending Mail, Body message from database
hi elopus!
i tried but it didn't work. i can generate data and show it in a page in a table format. but my problem is in sending via email wherein it will loop on the entire recordset. any other idea on how can i make this? thanks a lot. i appreciate your help. |
|
|||
|
Re: Sending Mail, Body message from database
why do you write the do while stuff in the message body ??? create a record set with the filters u require, and then only dump the recordset field in the body value thats it. It works like a charm.
|
![]() |
| Tags |
| sending, mail, body, message, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending Form Data to E-mail Address | Fools Gold | Starting Out | 4 | Dec 23rd, 2007 14:16 |
| Need help sending HTML message in PHP. | annawilsonz | PHP Forum | 0 | Sep 14th, 2007 06:31 |
| Sending Form to E-mail | student_in_training | JavaScript Forum | 2 | Aug 16th, 2006 12:41 |
| Sending File without open E-mail Application | accessman | Databases | 0 | Sep 26th, 2005 15:51 |
| sending an e-mail by ASP | benbacardi | Classic ASP | 5 | Sep 1st, 2004 19:33 |