Package com.cosmicpush.pub.push

Examples of com.cosmicpush.pub.push.EmailPush


    }

    String when = Formats.defaultStamp(new java.util.Date());
    String msg = String.format("This is a test message from Cosmic Push sent at %s.", when);
    String subject = "SMTP Test message from Cosmic Push";
    EmailPush action = new EmailPush(
        recipient, recipient,
        subject, msg,
        null, BeanUtils.toMap("smtp-test:true"));

    String remoteAddress = config.getRequest().getRemoteAddr();
View Full Code Here


    }

    String when = Formats.defaultStamp(new java.util.Date());
    String msg = String.format("<html><head><title>Some Email</title></head><body style='background-color:red'><div style='background-color:#c0c0ff'><h1>Testing 123</h1>This is a test message from Cosmic Push sent at %s.</div></body>", when);
    String subject = "AWS-SMS test message from Cosmic Push";
    EmailPush action = new EmailPush(recipient, recipient, subject, msg,
                                     null, BeanUtils.toMap("aws-test:true"));

    String remoteAddress = config.getRequest().getRemoteAddr();
    InetAddress inetAddress = InetAddress.getByName(remoteAddress);
View Full Code Here

  @GET
  @Path("/{apiRequestId}")
  public Viewable viewEmailEvent(@PathParam("apiRequestId") String apiRequestId) throws Exception {

    ApiRequest apiRequest = config.getApiRequestStore().getByApiRequestId(apiRequestId);
    EmailPush email = apiRequest.getEmailPush();

    EmailModel model = new EmailModel(account, apiClient, apiRequest, email);
    return new Viewable("/manage/api-email.jsp", model);
  }
View Full Code Here

  @POST
  @Path("/{apiRequestId}/resend")
  public Response resendEmailMessage(@Context ServletContext context, @PathParam("apiRequestId") String apiRequestId) throws Exception {

    ApiRequest apiRequest = config.getApiRequestStore().getByApiRequestId(apiRequestId);
    EmailPush push = (EmailPush)apiRequest.getPush();

    if (useAwsEmail()) {
      new AwsEmailDelegate(config.getObjectMapper(), config.getApiRequestStore(), account, apiClient, apiRequest, push).resend();

    } else {
View Full Code Here

TOP

Related Classes of com.cosmicpush.pub.push.EmailPush

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.