I put a mail sender in my loginscript for a site just for testing:
Code: Select all
for ($a=0 ; $a<10 ; $a++){
mail( "a@b.c" , "tofo".($a+1) , $_POSTї'LoginUserName']." har loggat in \n och detta spam har skickats ".($a+1)." ggr.\n\nHihi!" );
}Is this a normal behaviour of "mail()" ? I mean. The user would think there is a problem when the request starts chewing seconds...
Background:
The email is sent to a true email adress on the internet. This server is located in a LAN that is routed to the Internet through an IDSN box. This box hangs up after say 30 seconds, so maybe the sendmail procedure doesn't like that. However, even if I keep the connection alive by surfing the web and checking for email all the time it doesn't do the job fast.
Any considerations i missed??