I am create a cron job function,
Where i want to send more than 300 mail.
Normal new Email(‘default’); can send more than 300 mail.
But when I’m using,
$email = new Email();
$res = $email->setTransport(‘smtpp’); ← SMTP connection
it only send 85 to 95 mails and then show error.
From a post i got "SMTP server has a limit for number of requests in a time interval & a max limit for sending emails per connection, which varies as per different service providers."
Is there anyway to close smtp connection after each mail sent.