loic-sharma / Messages

A Laravel Bundle for the Swiftmailer library
GNU Lesser General Public License v3.0
39 stars 7 forks source link

Several messages with incorrect content #3

Closed html closed 12 years ago

html commented 12 years ago

Hi, I've used following code

        $message = Message::to($this->email)
            ->from('go@xxx', 'xxx site')
            ->subject('xxx')
            ->body($content);

I've sent several messages at one time and letter which should be sent to last email sended to all emails. And there were 2 copies of letter for each of recipients. Now changed mailer to swiftmailer and all is ok, it sends one copy with right content.

loic-sharma commented 12 years ago

If I understood you right, you were having problems sending multiple emails. This should now be fixed as the Swift_Mailer instance is now reset after a message is sent.

Thanks for reporting this :)