Use Velocity to generate email

Which method?


On Mon, Jul 14, 2014 at 1:50 PM, Carlos Munoz <notifications@github.com>
wrote:

> In zanata-war/src/main/java/org/zanata/service/impl/EmailServiceImpl.java:
>
> >              String toEmailAddr, String activationKey) {
> > -        this.toName = toName;
> > -        this.toEmailAddr = toEmailAddr;
> > -        this.activationKey = activationKey;
> > -        renderer.render(emailTemplate);
> > -
> > -        log.info(
> > -                "Sent activation account email: toName '{}', toEmailAddress '{}'",
> > -                toName, toEmailAddr);
> > +        try {
> > +            InternetAddress to = new InternetAddress(toEmailAddr, toName, UTF_8.name());
>
> Should we use the EmailUtil methods here? ... to not repeat ourselves
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zanata/zanata-server/pull/534/files#r14863148>.
>