Sending Newsletter to Bulk Bank Emails - No Limit Swiftmailer Email

Asked

Viewed 43 times

1

Hi,

I have an action on my controller that triggers emails from the database. I did some tests on my machine by inserting only my own e-mail into the table, put up to 1000. I only managed to receive 750 emails in my box. I wonder what it might be?

 $usuarios = Doctrine_Core::getTable('tbmailing')->createQuery('u')->select('u.email')->where('u.ativo = ?', 'Y')->execute();

    foreach ($usuarios as $usuario)
    {
        $sair = '<p style="font-family: Arial, Helvetica, sans-serif; font-size:x-small;">'
                . 'Se você deseja cancelar o recebimento deste boletim, '
                . '<a href="'.$rota.'/mailing/unsubscribe/'.base64_encode($usuario->getEmail()).'">'
                . 'acesse aqui.'
                . '</a>'
               . '</p>';

        $message = $this->getMailer()->compose(
            array("[email protected]" => "Meu Site"),
                $usuario->getEmail(),
                'Meu Site',
                '<img src="http://www.meusite.gov.br/images/informativoHeader.jpg"/>'.
                '<br><br>'.
                $body
                .'<img src="http://www.meusite.gov.br/images/rodape.jpg" border="0"/>'
                .$sair
            );

        $message->setContentType("text/html");

        $this->getMailer()->send($message);
    }

I use the Symfony framework Swiftmailer in version 1.4.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.