|
|
|
date: Thu, 3 Jul 2008 06:36:45 -0700 (PDT),
group: microsoft.public.inetserver.iis
back
Re: Writing into the Pickup directory
I discovered that the problem is not due to the fact that it is not
possible to write into the Pickup directory when IIS is active.
In fact, using a form created on an html page for sending data, the
ASP page (which has to write into the Pickup directory) works
properly... Then I think that the problem is due to the program that
sends data.
The process is this: a client program sends data (using post) to an
ASP page, on server side this ASP page has to write a text file into
the Pickup directory.
The program is written using Cꊕ and the Indy library, the code
I used is this:
Il codice che ho utilizzato è il seguente:
TIdMultiPartFormDataStream *data = new TIdMultiPartFormDataStream;
try
{
data->AddFormField("destinatario",IdMessage1->Recipients-
>EMailAddresses);
data->AddFormField("mittente",IdMessage1->From->Address);
data->AddFormField("oggetto",IdMessage1->Subject);
data->AddFormField("messaggio",IdMessage1->Body->Text);
risp = IdHTTP1->Post(url,data);
}
__finally
{
delete data;
}
The ASP page read data using this code:
receiver=Request.Form("receiver")
message=Request.Form("message")
sender=Request.Form("sender")
subject=Request.Form("subject")
I hope you can help me
Thank you very much again
date: Fri, 4 Jul 2008 08:11:58 -0700 (PDT)
author: carmelo
|
|