SMTP server problem |
HI , i have a bad server..
When i try to send multiple mail (this is only for testing, i must send 3 different email simoultanously ) : Code: public function test_invio_3_mail() this is invia_mail_tratta Code: private function invia_mail_tratta($email_to,$oggetto_mail,$message){ Code: Failed to send emails: 220 hpt01.web.l1.armada.it ESMTP Postfix It send only first email
Hi pippuccio76.
If the code works for sending the first email you could try adding a pause (sleep(5)) between sends in case the SMTP has some restriction. After sending an email, you are calling $email->clear(true);. This is good practice, but ensure that you are not clearing the email object too soon. You might want to check if the email object is still valid before sending the next email. Regards. |
Welcome Guest, Not a member yet? Register Sign In |