Batch Email

I have a web page that sends emails to groups of recipients. It uses CDONTS to send each email. While it works fine for sending a small amount of emails out, it chokes the page when sending to large amount of email addresses. Basically, it loops through each email address and sets the CDONTS object each time. I need to do this because each email is personalized.

Does anyone have any thoughts around how to optimize this code. Is there anyway in ASP to send the code to a background process for example?

View Replies


ADVERTISEMENT

Batch Print Several PDF

We have LOADS of documents scanned to PDF format, stored
in SQL tables.Allowing a client to browse our ASP driven site to select
and view individual PDFs has been no problem. ("index"
table is queried to show list of available PDFs, user
clicks a link in the list, PDF reader shows the document
in a new window.)
Now, they would like a feature that would PRINT (at their
location) batches of documents via the website,
preferablely with a single click.

View Replies View Related

Batch File

Security issues, warning messages, etc., aside,
what MIME-type combination do I need for and ASP to write a BAT file to the response stream?
e.g.
Response.Clear
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition", "attachment;filename=message.bat"
Response.Write("net send COMPUTER2 success")
Response.End()
This code does not work!
Which is surprising because in my current config, the following html works fine, and executes on the shell:
<A href="message.bat">test</A>

View Replies View Related

Batch Printing?

First, a little background. I'm developing an order management system for my company and I want to be able to print a batch of packing slips in one go without pulling each one up on the screen and clicking 'Print'.

How can I do this in ASP? The only way I can come up with is to loop through the records and concatenate a string with the HTML code and then send that string to the printer. But, I'm not exactly sure that's the best way or if it is even possible.

I want to basically click a button that says "Print All Packing Slips" and never see an output screen.

View Replies View Related

Batch Process

i have to start a batch process from a dll to transfer
files created by this dll to remote ftp server. I created
a batch file:

ftp -n -v -i -s:D:atchftpcmds.txt ftp-server

and a file containing the ftp commands:

user username password
lcd D:atchmedia
mput *.*
quit

It works pefectly when i start it from the dosbox. But
when i call it from the vb dll implemented in IIS (shell
("D:atch ransfer.bat")), it does not complete the
transfer and hangs after 400-500 (small) files.

View Replies View Related

Batch Files

How do I statically change my ip address to specific IP via a DOS batch file and back to DHCP via another DOS batch file?

View Replies View Related

ASP Batch Emailing

I need to send batch html emails out from a db mailing list (anything up to 1000 in one go).I am using CDOSYS and standard ASP. My problem is that it will error if I try to do any more that 5 every 30 seconds - this is fine when I send them out myself (I have a script to do this) but now I need a program which will allow users to send out batches and I want it to appear seamless.

View Replies View Related

Batch Files

How do I statically change my ip address to specific IP via a DOS batch file and back to DHCP via another DOS batch file?

View Replies View Related

Batch Update?

How do people go about batch updates. I can do batch deletes no prob.
In ref to bacth updates such as One to Many.

Lets say i want to move everyone from one group to another
thats where i'm stuck.

Tbl1 : Category
Tbl2 : Users

If for instance i need to change 45 (id=25) users from
Tbl1.field3 to Tbl1.field3 to (id=18)

In Tbl2

View Replies View Related

Executing A Batch File From Asp?

We're trying to write an application that will allow a user to enter an id field from an ASP intranet page and when they hit the enter button, fire off a print job. The problem is, Adobe must be open as the items being printed are PDFs.

We tried firing off a print command using MS SQL cmdShell() (not sure if that is the exact name of the command) and it works, but it never completes. The process hangs in the database because, we think, it hasn't closed Adobe, therefore never coming back to the query. We wrote the query into an ASP page.

Adobe must be open or the documents won't print properly.

Does anyone have any suggestions to how we can automate this?

View Replies View Related

How To Call A Batch (.bat) File

how to call a batch (.bat) file from an asp file

View Replies View Related

Sending Batch E-mail

I would like to send batch e-mail from fields in multiple records.

View Replies View Related

Batch Form Processing

I have a form that users enter details of a car (e.g make model , idnumber#) and then press save to save to the database they may want to order 10 cars with the same details exept the idnumber so to save the users entering in all 5 details I want to make it easier.

Should I have a list box and let the user add idnumber items from a text box and then pass this to my update asp and loop through + to save to the database or should I
save one record and then return back to the same form Note : I am having problems with this method as only part of the fields show when I hit the back button I just wondered what is the best method of doing this I am spoilt for choice and I also get problems.

View Replies View Related

Running A Batch File

Was wondering if anyone had any suggestions on how to execute a local batch file by simply pressing a button on an ASP page?

View Replies View Related

Running A Batch File

how to run a local Batch file from an asp page by simply pressing a button on the page?

View Replies View Related

Vbscript To Run A Batch File

I have a batch file that needs to execute every day and I need to run it in a silent/invisible mode. I looked up on the Internet and found this command: shell("batchfilename.bat").

Upon failure, learned that it is a Visual Basic command and not VBScript command. I wonder if anyone knows how to run a batch file using vbscript that runs in invisible mode?

View Replies View Related

Batch Image Upload In ASP

if anyone has experience in building the ability to upload/insert multiple images from one directory on the client machine to an Access database via asp. The process would be to click on the browse button for the correct images and you would be able to click on multiple images using ctrl or shift button and then insert the selected files into the database. Can this be done?

View Replies View Related

Calling A Batch File

I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run. in an asp script. Naturally, I can get the script to work from a command line but not from abrowser. The page does not throw an error but the oShell.Run. portion of the script doesn't run.

View Replies View Related

Send Batch Of Sql Statements To Sql Server

how to go about sending a batch of sql statements from asp to sql server, and
having errors appropriately handled? for example,

i want to send the following stored procedure calls to sql server in a
single batch from my asp code, rather than using a loop in asp to execute
each procedure individiually. if one of these fails, they all should fail.

exec myProc @param1 = 'A'
exec myProc @param1 = 'B'
exec myProc @param1 = 'C'
exec myProc @param1 = 'D'
exec myProc @param1 = 'E'
exec myProc @param1 = 'F'

View Replies View Related

Running Bat (batch) Files On Windows Server 2003 With Asp

im trying to run a bat file on windows server 2003 and am running into nothing but problems.

i have IIS on my XP workstation that accesses the 2003 server. what im about to explain below works properly on the XP IIs.

i have two files: somefile.asp and somefile.bat. the asp file creates a wscript.shell and then tries to execute the run method for somefile.bat.

however, it isnt working. after an unexaggerated 7 hours of searching google/etc, i have found nothing but frustration and deep, seething anger regarding this problem. Code:

View Replies View Related

Running Batch File Using WScript.shell Not Working

i used following code:

<%
set wshell = server.createobject("WScript.shell")
wshell.run "E:aaa.bat"
set wshell = nothing
response.write("worked")
%>

It does not show any error message and gives the output "worked"

I have installed .dll files for wsscript

Is there any other way to call batch file from aan asp page .

View Replies View Related

Batch File: Passing A String Variable To Sql Script Results In Truncation

I have a batch file that takes variables from the cmd and passes them by sqlcmd to an SQL script. When I pass the variable 'MikeTestList' the script runs as expected with no problems. When I passed 'BulkTransferTest' I got an error message, 'The string or binary data will be truncated'.

Some testing has shown that I get the error when the string is anything above 12 characters. Is there a limit to the length of a string you can pass using sqlcmd from a batch file? Is there any way around it?

Also, if I have a space in the string, it only passes the string up to the space. I have tried to fill it with a '%' which then gets passed as is, so the % stays in place through out the script. Code:

View Replies View Related

How To Tie RegID To Form To Update (batch Update)

Okay there is an unique EventRegID for every registration. When people first register they get pre-registered. Then an admin comes in and confirms or wait list them (based on whatever requirements). My question is how can I tie the EventRegID to a form with multipule ID's so they can batch confirm or wait list the PreReg list? Code:

View Replies View Related

Sequential Number After Batch Number

here is the scenerio

in master batch table i have various master batch like
200701-0001
200701-0002
200701-0003

Now each master batch can have multiple final mixed batch like

200701-0001-01
200701-0001-02
200701-0001-03

and this record is inserted in to fmix table.

so i have a form in which i have a dropdown menu in which all the master batch is listed,
i select 200701-0001 and that value is passed to next page where i will enter other fields data and insertion to my fmix_no will be done automatic like 200701-0001-01, 200701-0001-02 and so on,

how to achieve this

so in short each master batch will have more than one final mixed batch.

pls help, also if u have any online contact in yahoo or msn pls send me, i am so confused and badly struck deadline is just couple of hours away. my yahoo id is(E-Mail address blocked: See forum rules) you can PM me i am online right now.

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

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

Remove Email Address/ Pseudo Email Address

has anyone got a function or subroutine which will remove blank out or remove email addresses.

i've wrote a function which will remove valid email addresses, it's pseudo addresses such as "blah @ blah.com" or "blah_at_blah_dot_com" or "blah_at_blah_._com"

the function is basically to stop users posting an email address in a message.

View Replies View Related







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