[Network] [Mail] Added reset() function to make the class reentrant

Review Request #234 — Created Nov. 1, 2013 and submitted — Latest diff uploaded

andrea
Lunr
unit_refactoring_mail
214
lunr
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.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2
src/Lunr/Network/Mail.php
src/Lunr/Network/Tests/MailSendTest.php
src/Lunr/Network/Tests/MailSetTest.php
Loading...