Jump to content

wanting to use ajax to send newsletter


matte

Recommended Posts

hey,

 

I am working on a newsletter management script in php.  The problem i am having is the browser times out after 30 seconds and there are 5000 + users in the newsletter.  I thought about using ini_set to change the timeout time, but then users will think the page has hung up and leave the page...inturn stopping the newsletter from sending all the emails.

 

My question is will ajax timeout after a set amount of time or could i use ajax to send the newsletters and create some sort of progress indicator?

 

Thanks in advance.

Link to comment
Share on other sites

well the problem would be with the php not the javascript. So you should change the ini_set and maybe put a message saying "please wait...this might take a while" or something like that. You can also get javascript to do that on the wait state.

Link to comment
Share on other sites

i was thinking that when they hit submit on the form to send the newsletter it would fire up ajax in the background and disable  the page from being used and put a progress indicator up just showing the progress of sending out the emails i suppose as you  are saying during the wait state.  How long does ajax wait in the wait state before it times out?  That is what i am afraid of...don't really want to do all the work to find out javascript has the same problem as php in this case.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.