getInstance()
Looks like either factory or singleton pattern. It looks more like a singleton pattern and therefore you'll get the SAME instance of the object when calling.
So $mail
and $mail2
are probably the same instances.
Use better design patterns and make fresh instances using new Mailer()
.