-
Improvement
-
Resolution: Fixed
-
Major
-
4.3.0
-
None
-
None
-
4.5 M2
Seriously, consider using OOP.
One method has 16 arguments..
- Conditionne
-
RUNTIME-3617 SendMailHelper Allow disabling of inlineCSS
-
- Closed
-
- testing discovered
-
RUNTIME-3626 Fix typo in SendMailHelper method name
-
- Closed
-
For instance
SendMailHelper has just one method
class MailFactory has many (15 I think) methods
MailFactory withSubject(String subject)
MailFactory withRecipient(String recipient)
MailFactory withBody(String body)
etc.
and a method to build it into a mail
which can throw IllegalStateException if the recipient was not set for instance, etc.
Mail has 2 methods