Package com.feth.play.module.mail.Mailer.Mail

Examples of com.feth.play.module.mail.Mailer.Mail.Body


  @Override
  protected Body getVerifyEmailMailingBody(String verificationRecord,
      SignupUser user, Context ctx) {
    // No human will ever look at this body, so make it simple
    return new Body(verificationRecord);
  }
View Full Code Here


        token, user.getName(), user.getEmail());
    final String text = getEmailTemplate(
        "views.txt.account.signup.email.verify_email", langCode, url,
        token, user.getName(), user.getEmail());

    return new Body(text, html);
  }
View Full Code Here

        token, user.name, user.email);
    final String text = getEmailTemplate(
        "views.txt.account.email.password_reset", langCode, url, token,
        user.name, user.email);

    return new Body(text, html);
  }
View Full Code Here

  }

  public void sendPasswordResetMailing(final User user, final Context ctx) {
    final String token = generatePasswordResetRecord(user);
    final String subject = getPasswordResetMailingSubject(user, ctx);
    final Body body = getPasswordResetMailingBody(token, user, ctx);
    sendMail(subject, body, getEmailName(user));
  }
View Full Code Here

        user.name, user.email);
    final String text = getEmailTemplate(
        "views.txt.account.email.verify_email", langCode, url, token,
        user.name, user.email);

    return new Body(text, html);
  }
View Full Code Here

      final Context ctx) {

    final String subject = getVerifyEmailMailingSubjectAfterSignup(user,
        ctx);
    final String token = generateVerificationRecord(user);
    final Body body = getVerifyEmailMailingBodyAfterSignup(token, user, ctx);
    sendMail(subject, body, getEmailName(user));
  }
View Full Code Here

  protected abstract R generateVerificationRecord(final US user);

  protected void sendVerifyEmailMailing(final Context ctx, final US user) {
    final String subject = getVerifyEmailMailingSubject(user, ctx);
    final R record = generateVerificationRecord(user);
    final Body body = getVerifyEmailMailingBody(record, user, ctx);
    sendMail(subject, body, getEmailName(user));
  }
View Full Code Here

                .scheduleOnce(delay, new MailJob(email),
                        Akka.system().dispatcher());
    }

    public Cancellable sendMail(final String subject, final String textBody, final String recipient) {
        final Mail mail = new Mail(subject, new Body(textBody), new String[]{recipient});
        return sendMail(mail);
    }
View Full Code Here

        final Form<MailMe> filledForm = FORM.bindFromRequest();
        if (filledForm.hasErrors()) {
            return badRequest(index.render(filledForm));
        } else {
            final String email = filledForm.get().email;
            final Body body = new Body(
                    views.txt.email.body.render().toString(),
                    views.html.email.body.render().toString()
            );
            final Mailer defaultMailer = Mailer.getDefaultMailer();
View Full Code Here

TOP

Related Classes of com.feth.play.module.mail.Mailer.Mail.Body

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.