the context : i am currently working on a website/wep app in my company containing a page which is used to send about 280 e-mails to some users.
all is working fine in the test server but on production server we got a timeout in the middle of the function (it take about 5 min to send everything) some users received the mail, some others no.
in the test server, all is working and i am the one who received all the mails, no error, no exception, no timeout.
By looking at another of our site which has the same functionality using almost the same code, i saw this at the beginning of the PageLoad : Server.ScriptTimeout = 600
the question :
My function sending a mail looks like this :
onclick()
{
foreach()
{
sendmail()
}
}
As the foreach takes about 5 min to iterate entirely, is it possible that an On_click event from a button trigs a timeout ?
thanks for helping
note : it's a custom button whith confirmMessage which block the page until the event clic is over.
note 2 : i don't see any problem in the code since the important sending part is copied on 1 of our working application, also i tried all the code while just commenting the message.send() function and there was no problem at all. it could be a problem from our mail address in database but i can't test them unless i send a real mail, and i don't want to send real mails as tests :)