Groups | Blog | Home
all groups > inetserver asp general > december 2006 >

inetserver asp general : Sending the generated report via mail


mrajanikrishna NO[at]SPAM gmail.com
12/14/2006 11:20:18 PM
Hi friends,

I am generating a shipment order booking. For this, I am generating
a report which contains the container details. And another report from
another file, generating the packing list.
These two report are from two different pages. I want to send these two
reports together by mail.

[quoted text, click to view]

cdoMail.subject="Shipping order booking form"
cdoMail.To="to email"
cdoMail.From="from email"
cdoMail.body=strHtml (which is submitted from report page)
cdoMail.send

But I want to send both reports in one mail. How can I use other page
to the current page and send by mail?

thanks in advance
Evertjan.
12/15/2006 12:00:00 AM
wrote on 15 dec 2006 in microsoft.public.inetserver.asp.general:

[quoted text, click to view]

The best way [imho] is to make one page with both reports.

Otherways, you will have to save the first sting somewhere:

1 in a database
2 in a temporary file
3 in a session variable

all have their pros and cons.

--
Evertjan.
The Netherlands.
Bob Barrows [MVP]
12/15/2006 12:00:00 AM
Sure, if your web server has sufficient resources (memory), and you're
diligent about deleting it from session as soon as you're finished with it
instead of letting the cleanup at the end of the session take care of it.

[quoted text, click to view]

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

mrajanikrishna NO[at]SPAM gmail.com
12/15/2006 1:32:47 AM

Hello,

Thank you for the reply. Can I store a long string (strHTML) in a
session variable?



[quoted text, click to view]
AddThis Social Bookmark Button