A reset function is added and called at the end of send(), in order to clean up the state of the Object without destroying it.
Also added sendTo($index) method, which will send the email just to one of the addresses added, specified in the $index var.
This could prove useful in some occasions.
Unit Tests.
Loading file attachments...
0
0
2
0
2
Description
From
Last Updated
I fail to see the benefit of $mail->from(me)->sendTo(you); over $mail->from(me)->add_to(you)->send(); We get a bunch of added complexity for 8 characters ...
I fail to see the benefit of
$mail->from(me)->sendTo(you);
over
$mail->from(me)->add_to(you)->send();
We get a bunch of added complexity for 8 characters less to type.
Thanks, I was aware, but that's not what is for. (I'm not gonna copypaste from Skype)
Will remove it of course, not going into which solution would be best for my case and the harm of providing both options.
Well, then you need to document it better. Based on the documentation of the method, this is *exactly* what I would use it for.
Ok, rechecking to code, I see what use case you see in it. Functionality like this is in fact planned to be available, in different form however.
The idea is to provide an implementation for something like this within Vortex, aka email notifications.