Jump to content

mail() VS delete


voip03

Recommended Posts

Without delete code mail () function work very quick ( means get email immediately ).

When I place delete the mailing process taking 20-30 mints to get mail.

Why?

TIA

 

	
<?
if (mail($verifyemail,"Your new password !", $mail_body,$headers))
	{	
		echo "<div class='feedback'><span > <br/><br/> 
			  Your password has now been reset and emailed to you. Please check your email to find your new password. To change your password, please use this
			  <a href='http://www.site.info/'>form</a>.</span></div>";
		// Delete the code
		mysql_query("DELETE FROM passwordReset WHERE id='".$validid."'") or die(mysql_error()); 				  	
	}
	else
	{	header("Location:".$config_basedir."resend.php?error=1854621");	exit;	}
?>

Link to comment
https://forums.phpfreaks.com/topic/243701-mail-vs-delete/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.