ElkArte Community

General => Chit Chat => Topic started by: ahrasis on February 12, 2017, 11:08:46 pm

Title: A Finding On Gmail Sending Speed
Post by: ahrasis on February 12, 2017, 11:08:46 pm
It is interesting to find out in the following link[1]that gmail can process 1000 emails per 55 minutes. I was considering 1 per second or 60 per 1 minute or 3600 per hour (or faster of course lol) but the test was using php and it gave a gap of 3-4 per email.

Their code is this:
Code: [Select]
    <?php
        require("PHPMailer/class.phpmailer.php");
        $mail = new PHPMailer();
        $mail->IsSMTP();
        $mail->Host = "smtp.gmail.com";
        $mail->SMTPAuth = true;
        $mail->Username = 'USERNAME';
        $mail->Password = 'PASSWORD';
        $mail->From = "go...@email.com";
        $mail->FromName = "Gmail Test";
    
        $mail->AddAddress("m...@email.com");
        for($i=0; $i<=1000; $i++){
       $date = date("H:i:s m/d/Y");
       $mail->Subject = "$date";
   
       $mail->Body = "Test $i of PHPMailer.";
   
       if(!$mail->Send()){
          echo "Error sending: " . $mail->ErrorInfo;
          break;
       }else{
          echo "$i. E-mail sent => $date<BR>";
          sleep(2);
          continue;
       }
        }

        ?>
I am interested in learning this from EA code for sending emails but where do I find them?
https://productforums.google.com/forum/#!topic/apps/P9Yh0xI2fac
Title: Re: A Finding On Gmail Sending Speed
Post by: vbgamer45 on February 12, 2017, 11:21:39 pm
Gmail it really depends on your IP reputation. Big companies have a few ip's and yet can send millions of emails. I
Title: Re: A Finding On Gmail Sending Speed
Post by: ahrasis on February 13, 2017, 02:00:09 am
I don't really understand what you were saying @vbgamer45.

I was referring to using gmail smtp in sending emails, not using own email server for it. So, I don't find IP issue of much relevant.
Title: Re: A Finding On Gmail Sending Speed
Post by: vbgamer45 on February 13, 2017, 03:05:22 am
Ah yes never mind my fault did not read it clearly.

I would get a throw email account just in case gmail account if you are going to use so in case they don't like the emails you don't loose your main gmail acount.