}
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);