Jump to content

codiy

New Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by codiy

  1. this was a response I got

     

     

     

     

    Well, six seconds is around the high end of the usual threshold for PHP mail or mail sent via SMTP that is being sent out as a result of a contact form or script on the (gs) Grid-Service. As I previously mentioned, the Grid is a clustered type of server where resources from each server in the cluster are shared among customers. When PHP mail it sent out it is sent from any number of web nodes and not necessarily only from your (gs) Grid-Service itself, depending on load.

    If you need instantaneous sending capability it is recommended that you either further optimize your script, use a dedicated mailing service provider (such as MailChimp), or consider hosting on a VPS server where resources are not shared.

  2. I have a user registration as well as a password recovery setup in php7 that I have got to work as I wanted. my problem is on registering or recovering a password I have it coded to send a message to the user ... it sends the email to user and registers no problem but the execution of the mail is extremely slow. I am trying to figure out a faster way of sending this..

     

    So when the user fills out the register form and then click register it just sits and spends for a few sec then finally says registration complete. if i remove the code below which sends the email the site registers blazing fast.

     

     

    the below code sends the email with no problem other than the execution of it is slow not in receiving the email slow as in slows the execution on the site

     

     

    $from = "Mysite <noreply@mysite.com>";
    $to = $email;
        $subject = "Registration";
        $body_message = "Hello!\n\n\n\nThank you for registering. \n\nYou must verify the email address associated with your account.
        \n\n\nThis message was sent from an unmonitored account. Any responses will not be read.\nIf you have any questions or concerns, please contact support@mysite.net";
        $headers = "From: $from\nReply-To: $from\nContent-Type: text/plain";

        mb_send_mail($email, $subject, $body_message, $headers);

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