PHP mail https php.ini secure speed question

  • Answered
VPS customer using php mail for user signup. The mail script executes in about 20 seconds now that I have https, it used to only take 1-3 seconds tops. Is there a setting I need in my php.ini to cause this to execute faster? It's really bad for ux and I've already troubleshot the rest of the script, if I omit the mail function, it takes about 2 seconds to execute. Here, it's all textbook, take a look, if you want. $to = "$e"; $from = "My site name "; $subject = 'Account Activation'; $message = 'my site
Account Activation
Hello '.$firstname.',

Click the link below to activate your account when ready:

Click here to activate your account now

Login after successful activation using your
E-mail Address: '.$e.'
'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: $from' . "\r\n"; mail($to, $subject, $message, $headers);
Hello, Thank you for your question regarding the mail sending speed from a PHP script. I recommend reviewing the email logs for for additional clues or record of the transmissions. If your problems persist you may want to try using SMTP, which is the recommended option for sending email from a form. Thank you, John-Paul