Hi,
I need to insert some records to a table and then need to send a mail. while using mail() function in php, it takes 20 to 25 seconds to send a mail. insert query executes immediately. but if i do any operation in the page it takes 20-25 seconds. it works properly when i get the mail.
code which im using my page.
$headers = "From:kamal@company.com \n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
$recipient = "raja@gsecone.com";
$subject = "Test subject";
$htmlbody = "Content text";
mail ($recipient, $subject, $htmlbody, $headers);
do you have any idea?
Thanks.