473,412 Members | 2,092 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,412 software developers and data experts.

Sending the generated report via mail

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.
>From one page, I can send directly using
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

Dec 15 '06 #1
3 1477
wrote on 15 dec 2006 in microsoft.public.inetserver.asp.general:
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.
>>From one page, I can send directly using

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?
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.
(Please change the x'es to dots in my emailaddress)
Dec 15 '06 #2

Hello,

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

Evertjan. wrote:
wrote on 15 dec 2006 in microsoft.public.inetserver.asp.general:
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.
>From one page, I can send directly using
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?

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.
(Please change the x'es to dots in my emailaddress)
Dec 15 '06 #3
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.

mr************@gmail.com wrote:
Hello,

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

Evertjan. wrote:
>wrote on 15 dec 2006 in microsoft.public.inetserver.asp.general:
>>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.

From one page, I can send directly using

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?

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.
(Please change the x'es to dots in my emailaddress)
--
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"
Dec 15 '06 #4

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

Similar topics

7
by: Susan Bricker | last post by:
I would like to generate a report (I have the report working already) using MS/ACCESS 2000 and then have the ability to send the report as an email attachment to my colleagues. I have looked...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: F6GGR | last post by:
Hello, Here is my problem. I use Access 2000. The data base is simple : one table (Customers : with Id, Name, etc and e-mail address). Whay I want to realise : send a e-mail to each customer...
0
by: Stinky Pete | last post by:
Arvo, I've got the following code which is used to send details of a specific record, as rich text, to authorised persons requesting they then approve/action the necessary information. ...
0
by: misra | last post by:
Hi, I am using a C# code to call blat and send mail. When I send mails with long sentences, the mail automatically is send with multiple lines. However, certain times the body and format of the...
2
by: vishalgupta | last post by:
when i use the code : private void Report(int var) { var++; String ToEmail = ""; String FromEmail = ""; String Bdy = ""; ToEmail =...
4
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its...
19
by: mahmodm3 | last post by:
(using System.Net.Mail) hi i have this code : MailMessage myMail = new MailMessage("mail@mail.com", "mail@mail.com", "My Report.", "See the file."); SmtpClient myccc = new...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.