Best Practice To Request Email Attachement

I'm writing an ASP page where the user can specify criteria for an online report that might take so long to generate as to justify rather sending the result as a CSV file by email.

I'm looking for ideas / best practice to manage the request for the CSV.

What I already have is ..

1. The ASP form that collects the report criteria.

2. An MTS object that receives these criteria and builds a matching recordset, and parses the results into a report (HTML format/CSV/whatever).

3. Also, the MTS object uses CDONTS (NT4 server still) to prepare an email and attach the parsed report as a file.

The problem is: when the user requests an email, I want control to immediately return to the ASP page so that the report can be prcessed and emailed in the background. Otherwise, what's happening now is that the user has to wait for the whole recordset to be processed and emailed, before the ASP page returns control to him!

What I don't want to do is: go and write a record to a database table, which some sort of polling app will pick up separately and generate the email ....

View Replies


ADVERTISEMENT

Come Practice Your Skills

I am building a website in ASp and i want to Create a form with two drop down lists; one for background colour, one for font colour. I want the User to be able to set the colour of both using drop down list and press submit.

TBut I want the form to submit to a separate page which should then say "Your settings have been applied" and the background and font colours will be the ones the user had selected from the drop down list. Code:

View Replies View Related

Implementing File Attachement

I have created a cfm for my website and what my problem is that when it comes to uploding an image in the site i have to manually do it through a ftp program and than write the link in the admin section of the site in the form where i submit than it displays the new image or images.

but i would like to do it so the administrator can click on browse than attach the image and than when submited the image gets uploaded in the choosen folder and the file path is writen in the database (access). is this possable? i have an insert form that has the form to submit and i have created the insert prossersor page that contains the SQL statement that prosessos the form.

View Replies View Related

Email Confirmation Request?

Does anybody knows is there any kind of asp mail script (CDO prefered) that will, when i send newsletter, send back to me confirmation from server that email has arrive?

View Replies View Related

Email Meeting Request

I have to send an email using asp with a meeting request just as you can do from Microsoft outlook. Any ideas how it can be done?

View Replies View Related

Request All Fields From A Form And Send By Email

i already create a code to request all fields from a previous page form using the next function y separate the fields with the value of each one. Code:

View Replies View Related

Request.BinaryRead :: Request Object Error 'ASP 0104 : 80004005'

Why does the error below occur whenever the statement Request.BinaryRead Request.TotalBytes) is executed for uploads larger than 100K? I thought the 100K limit applied only to Request.Form. This does not occur with smaller uploads. This is running on an IIS 6 server with full FP2002 extensions.

ERROR:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed

View Replies View Related

Consecutive Request.Form And Request.BinaryRead

Request.Form and Request.BinaryRead cannot be called after each other as it causes errors.

I need the BinaryRead and I also need to access other form values, but I cannot call them after one another. What do I do?

View Replies View Related

What Is The Difference Between REQUEST And REQUEST.QUERYSTRING?

What is the difference between these two statements? They seem to do the
same thing...

response.write(request("variable"))

response.write(request.querystring("variable"))

View Replies View Related

Using Request And Request.Form

when the asp page is Request("txtName").i can use "testpage.aspx?txtName=User1" to post the value.but when i use Request.Form("txtName").i cannot use that method,what can i do to solve that problem.(as i cannot modifty the request.form syntax but i need to post data to that web page, is there any method so that i can pass that parameter?)

View Replies View Related

Request Instead Of Request.QueryString

I saw some program using "request("fieldname") " instead of "request.QueryString" to get the value from URL, what's the different ?

View Replies View Related

Email Validation Of Email Address Within An Access Database

Im running a simple mail system program which emails newsletters to a database list of 3000+ users.

The program loops through a database containing the emails and sends them out using ASPEmail.

My question is, is there some way i can validate each email address so that if there are invalid characters e.g. the space in "blah @blah.com"
it will skip the record and continue the loop.

At the moment i have a working program however, whenever the program comes across an invalid email address it stops at that record and prevents the program from emailing any further.

View Replies View Related

CDONTs - Problem Formatting An Email, From Form To Email

I am having a problem formatting an email message which comes from a form.

I am currently having difficulty with the <br> tag which I am using for line spaces within my email. I am getting an expected statement error message which is pointing to the line which is underlined below. I can't think what is causing this.

The code for my processing page is below:-

View Replies View Related

Generating Email Address And Textarea To Be Inlcluded On Email

1. I want users to type in their email address on a textfield, and after users press the "Submit" button. The info will automatically go to another person's email to receive a compliment, suggestion, etcetera.

2. Another is how to include the message written on a textarea of a form with the ASP code supplied below: Code:

View Replies View Related

Asp Email Verification Check Valid Email Thru Mx Record

how to write to check verification valid email thru nslookup or mx record or dns record. Is it possible to do that. Is there any tutorial from sitepoint, previously found it but i lost the link.

example to check assume test@domain.com is not a real email, abc@domain.com is real email
how do u check it.

View Replies View Related

Request.Form("Field Name") Versus Request.QueryString("Field Name")

I want to know what's the differences between

Request.Form("Field Name") and
Request.QueryString("Field Name")

OR they function exactly the same, which is to return the value of the
field??

View Replies View Related

Cdonts Email Script Won't Send Email

i used the following script but it won't send the email. any suggestions why?

<%
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Importance = 1 (Normal)
MyCDO.Send
Set MyCDO = nothing

%>

View Replies View Related

Email Form - Verify Email Address

Just starting to play with scripts, and need a little guidance. I want to check to make sure that the email addresses users enter in a form are identical before it will allow them to submit. here's what i have:

the variable for the second email address is EmailFrom2

'validation
Dim validationOK
validationOK=true
If (Trim(EmailFrom)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("emailerror.htm?" & EmailFrom)
If (Trim(Name)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("nameerror.htm?")
If (Trim(CityState)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("citystateerror.htm?")
If (Trim(SchoolName)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("schoolnameerror.htm?")

View Replies View Related

ASP Email Form: Sends To Some Email Addresses But Not Others..

here is the script i use:

Set myMail=server.CreateObject("CDO.Message")
myMail.Subject="subject"
myMail.From="me"
myMail.To=request.form("email")
myMail.TextBody="hello"
myMail.Send
set myMail=nothing

this script sends emails to some addresses but not others--and its based on the email service it's sending to. for instance, hotmail email addresses get the email, but mail.com email addresses dont get the email. i have tried sending it to other email hosts, too, and still, some work, some don't. what is going on here?

View Replies View Related

Email Through CDONTS Using ISP Email Server

I am using CDONTS component to send email in ASP.

The code is some thing like this:

Dim Mail
Set Mail = Server.CreateObject("CDONTS.Newmail")
mail.From = "abc@hotmail.com"
mail.to = "xyz@hotmail.com"
mail.subject = "Test Email Subject"
mail.body = "This is Email body message"
mail.send

Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".

View Replies View Related

400 Bad Request

I am trying asp.net for the very first time. When i try to work on an
example in a book, it says to create a project for (asp.net web application)

Location: http://localhost/aspexample1

I get error 400 bad request.

IIS server is running.

View Replies View Related

BAD REQUEST

Classic ASP, WIN2000, IE6.0
Error:
400 BAD REQUEST

The problem is ramdom

View Replies View Related

Url Request

I am developing site in asp where I need to call a url at every interval. Is there a way to automate this. I want to call the url every 15 or 30 mins.Cureently I have written a asp script tp call it using

Set objWinHttp = Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET",URL
objWinHttp.Send ' Send it.
strResponse3 = objWinHttp.ResponseText ' Get the response string from the object.

But it is not schedule..I can call it only when I rum the asp script. So is there any way I can schedule this url call for every 15/30 minutes.
Also forgot to mention : the site does not have that much traffic that I can add it in index page...there may be a user visiting the site in 5 hours time or within next 5 mins or for next 2 days there may be no visitor.

View Replies View Related

400 Bad Request

I am trying asp.net for the very first time. When i try to work on an
example in a book, it says to create a project for (asp.net web application)

Location: http://localhost/aspexample1

I get error 400 bad request.

IIS server is running.Please help me resolve this?

View Replies View Related

'request'

I have a form which shows all Records from a database
eg.
select * from sometable

the user inputs criteria in a form on the sam page and submits it.
i need to see if the form has been submited. and the way to do it is to
see if i have 'Request.form(somefield)' and then refrase the sql into
something like

select *from table where something=this and somethingelse=this
my problem is that i have to check every form field to see if it has been
set(not empty).Is there a way to see this without checking every form field?

View Replies View Related

Using Request

Can we execute an Access Request with ASP? If Yes how can we do that?

View Replies View Related

Request

I created a ASP which has a form as well. The form has a list box.On the click of the submit button I wanted to just display the contents selected from the list box.

When in the VB script part I say dataString = Request("Data_List"), (where Data_List is the list box id) it gives me an error message saying "Object Required. Request"

I tried it with the text box also. It gave me the same message.

View Replies View Related

Request.QS

I just want a person not to see a page if they have not come from paypal. Whats wrong with this code?Code:

<%
if(Request.QueryString("http://www.paypal.com") != "") then
Response.Redirect("index.asp")
end if
%>

View Replies View Related

Request Is Nothing

I have use many request already but this time i really don't know how. Here is my problem, I use Request("var1") to request the form that i have submit it and it always nothing. but when I use Request.form to show all, it appear all include that variable too. And the web server is IIS 6.0 with windows 2003.

View Replies View Related

Request.querystring

Trying to test if Querystring is empty. then display content based on that. Currently trying: Code:

<% if Request.QueryString("variable")="" then
response.write ("hello") End If %>

Basically I'm looking for a way to display certain content only on the main page when no variable has been set.

View Replies View Related

Identifying A Web Request.

We are developing a web application which is targeted at two
types of users.

1) Users from within our NT domain.
2) Users outside domain.

The application will behave differently for these two types of users.

My question is that how can we identify where the request has come from? If from intranet or from outside?

View Replies View Related

Request.QueryString's

slight problem (for newbie) giving error:

0x800A01B6: Object doesn't support this property or method: 'Request.QueryString.ID'

source of problem is line 6 (the bold one):

<%
Dim players__idd
players__idd = "1"
If (Request.QueryString.ID <> "") Then
players__idd = Request.QueryString.ID
End If
%>

i call the page using profile.asp?ID=1

View Replies View Related

Request.querystring()

i m trying to pass a string valuewith a link:

like .............
response.write("<a href==teamemployee.asp?team=" & team & ">" & team & ">")

at the run time the value of team is "Admin & facilities" .

but when i read the value of team by using request.querystring("team")
. it returns only the value "Admin" .

but if the value of team is "Finance "

it returns the "Finance " .

Now , i think you can understand my problem that , request.querystring("team") is returing the value

before space . how to solve this problem .

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved