Examples of sendEmail()


Examples of com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.sendEmail()

            // and EU_WEST_1. For a complete list, see http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html
            Region REGION = Region.getRegion(Regions.US_EAST_1);
            client.setRegion(REGION);

            // Send the email.
            client.sendEmail(request);
            System.out.println("Email sent!");

        } catch (Exception ex) {
            System.out.println("The email was not sent.");
            System.out.println("Error message: " + ex.getMessage());
View Full Code Here

Examples of com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.sendEmail()

            request.withDestination(new Destination(emails));
            request.withMessage(new Message(new Content(subject), new Body().withHtml(new Content(body.toString()))));

            AmazonSimpleEmailServiceClient emailService = AwsUtils.getAmazonSimpleEmailServiceClient();
            try {
                emailService.sendEmail(request);
                updateLastAlertMillis(endMilli);
                logger.info("updateLastAlertMillis " + endMilli);
            }
            catch (Exception e) {
                logger.error("Error in sending alert emails", e);
View Full Code Here

Examples of com.tll.mail.MailManager.sendEmail()

        data.put("emailAddress", user.getEmailAddress());
        data.put("password", rp);
        final MailManager mailManager = context.getMailManager();
        final MailRouting mr = mailManager.buildAppSenderMailRouting(user.getEmailAddress());
        final IMailContext mailContext = mailManager.buildTextTemplateContext(mr, EMAIL_TEMPLATE_NAME, data);
        mailManager.sendEmail(mailContext);
        status.addMsg("Password reminder email was sent.", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      catch(final EntityNotFoundException nfe) {
        exceptionToStatus(nfe, status);
        context.getExceptionHandler().handleException(nfe);
View Full Code Here

Examples of com.tuscanyscatours.emailgateway.EmailGateway.sendEmail()

        ObjectFactory objectFactory = new ObjectFactory();
        EmailType email = objectFactory.createEmailType();
        email.setTo("Fred");
        email.setTitle("An email");
        email.setBody("A message");
        System.out.println(cc.sendEmail(email));
    }

    /**
     * @throws java.lang.Exception
     */
 
View Full Code Here

Examples of com.webobjects.appserver.WOMailDelivery.sendEmail()

        }
        if(bccAddresses() != null) {
            message = "BCC: "+bccAddresses()+"\n" + message;
        }
        //LogLog.error(message);
        delivery.sendEmail(message);
    }
}
View Full Code Here

Examples of evolaris.framework.async.business.communication.MessagingManager.sendEmail()

    case 3// e-mail address
      EmailAddress toAddress = new EmailAddress(emailSendForm.getToEmail(), emailSendForm.getToPersonalName());
      SortedSet<EmailAddress> receivers = new TreeSet<EmailAddress>();
      receivers.add(toAddress);
      MessagingManager msgMgr = new MessagingManager(locale, session);
      msgMgr.sendEmail(fromAddress, receivers, getCurrentGroup(req), emailSendForm.getSubject(), emailSendForm.getMessage(), emailSendForm.getMimeType() == null ? MailSender.MIME_TYPE_PLAIN_TEXT : emailSendForm.getMimeType().intValue(), sendAt);
      Date date = new Date(System.currentTimeMillis());
      String formattedDate = DateFormat.getTimeInstance(DateFormat.MEDIUM,locale).format(date);
      String generalInformation = getResources(req).getMessage(locale, "smssvc.asyncSendStarted", new Object[] {new Integer(receivers.size()), formattedDate});
      req.setAttribute("generalInformation", generalInformation);
      return mapping.findForward("sent");
View Full Code Here

Examples of evolaris.framework.async.business.communication.MessagingManager.sendEmail()

      String noUsersWithEmailString = getResources(req).getMessage(locale,"smssvc.noUsersWithEmail");
      req.setAttribute("generalError",noUsersWithEmailString);
      return mapping.findForward("notSent");
    }
    MessagingManager msgMgr = new MessagingManager(locale, session);
    msgMgr.sendEmail(fromAddress, receivers, getCurrentGroup(req), msgForm.getSubject(), msgForm.getMessage(), msgForm.getMimeType() == null ? MailSender.MIME_TYPE_PLAIN_TEXT : msgForm.getMimeType().intValue(), sendAt);
    Date date = new Date(System.currentTimeMillis());
    String formattedDate = DateFormat.getTimeInstance(DateFormat.MEDIUM,locale).format(date);
    String generalInformation = getResources(req).getMessage(locale, "smssvc.asyncSendStarted", new Object[] {new Integer(receivers.size()), formattedDate});
    req.setAttribute("generalInformation", generalInformation);
    return mapping.findForward("sent");
View Full Code Here

Examples of org.eclipse.orion.server.useradmin.UserEmailUtil.sendEmail()

        reviewRequestEmail = new EmailContent(EMAIL_REVIEW_REQUEST_FILE);
      }

      String emailAdress = userInfo.getProperty(UserConstants2.EMAIL);

      util.sendEmail(
          reviewRequestEmail.getTitle(),
          reviewRequestEmail.getContent().replaceAll(EMAIL_COMMITER_NAME, authorName).replaceAll(EMAIL_URL_LINK, url)
              .replaceAll(EMAIL_COMMIT_MESSAGE, message), emailAdress);

      JSONObject result = new JSONObject();
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdCandidacyReferee.sendEmail()

    }

    public ActionForward sendCandidacyRefereeEmail(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdCandidacyReferee referee = getDomainObject(request, "candidacyRefereeId");
        referee.sendEmail();
        addSuccessMessage(request, "message.candidacy.referee.email.sent.with.success", referee.getName());

        return prepareEditReferees(mapping, form, request, response);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdCandidacyReferee.sendEmail()

    public ActionForward sendCandidacyRefereeEmail(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        final PhdCandidacyReferee referee = getReferee(bean.getCandidacyHashCode().getIndividualProgramProcess(), request);
        referee.sendEmail();
        addSuccessMessage(request, "message.candidacy.referee.email.sent.with.success", referee.getName());

        return prepareEditCandidacyReferees(mapping, actionForm, request, response);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.