Background: I have a site that sends a good bit of emails, some one at a time, and some larger groups of admin emails. I'm running on a shared hosting service. The mailserver is horribly slow, so any script that sends a single email can take as much as 15 seconds to execute (and I can't seem to set Response.BufferOutput to false, so the whole page has to wait the entire duration). On the bulk emailings, it can take minutes for that to run.I want to create a "mail queue" of my own... I want any script that sends an email to, instead, write a row to a db table containing the necessary email info, which will let the script get on with its business quickly. Then, I want to create a script that runs on the server only, and have it check the table for emails, send them, and remove them from the table.I know I can have the "mailsender" script run as a scheduled task, and it would thereby run on the server only. But I would prefer to have the initial script somehow "trigger" the mailsender script.So, QUESTION: Is there a way in asp.net to create a script that will execute solely on the server, and call that script from another page, so that the calling page doesn't wait for the server script to execute?Thanks!
View Complete Post