I have a mail script that sends out newsletters. It's written in ASP VBScript.
The mail script is located inside a do while loop and sends out 1 email at a time (at remote smtp server's request).
Here's what's going on.
while not rs.eof
response.Write "Sending email to " & rs.EmailAddress>
<<email script goes here>>
response.Write " - OK"
Insert text on page > " - OK <BR>"
The script works fine, but it's the visuals my client is not happy with.
Every time an email is about to be sent, the text "Sending email to email@example.com" is displayed, and when it's sent, the text " - OK" is added to the same line and then a line break.
After about 30 or so emails are sent, the new lines that are added disappear below the scroll line and the user has to manually scroll the page to see where they are at.
He wants the page to scroll every time a new email is sent so the last email address is always visible on the page.
I thought about adding an element under the script and setting the focus to that point, but I can't figure out how to do that inside the ASP script.