Examples of sendMail()


Examples of com.plusone.action.ContactAction.sendMail()

    ContactAction action = new ContactAction(new InputVerifier());

    if (action.IsValid(contact)) {
      action.Save(contact);
      action.sendMail(contact);
    } else {
      response.setContentType("text/plain");
      response.setStatus(400);// bad request
    }
  }
View Full Code Here

Examples of com.plusone.action.ContactAction.sendMail()

    ContactAction action = new ContactAction(new InputVerifier());

    if (action.IsValid(contact)) {
      action.Save(contact);
      action.sendMail(contact);
    } else {
      response.setContentType("text/plain");
      response.setStatus(400);// bad request
    }
  }
View Full Code Here

Examples of com.sogou.qadev.service.cynthia.service.MailSender.sendMail()

    result.append(GetErrorInfoHtml(mailVo.getErrorList()));
    result.append(this.getHtmlFoot());

    MailSender mailSender = new MailSender();
    mailSender.sendMail("[Cynthia][数据表单导入]导入Excel数据信息", result.toString(), receivers);
  }

  /**
   * @description:get error info html
   * @date:2014-5-5 下午8:23:03
View Full Code Here

Examples of de.chris_soft.fyllgen.utilities.MailTools.sendMail()

      mt.setText(text);
      mt.addTO(mail);
      mt.addAttachment(zipFilename);
      boolean sendMailError = false;
      try {
        if (!mt.sendMail()) {
          sendMailError = true;
        }
      }
      catch (Exception exc) {
        sendMailError = true;
View Full Code Here

Examples of de.chris_soft.utilities.SendHtmlMailUtils.sendMail()

      String fulltext = metadata.getProperty(Metadata.FULLTEXT);
      String htmltext = HtmlFormatter.getHtmlString(fulltext, false, false);
      mail.setText(link + "<p>" + htmltext + "</p>");
    }
    try {
      mail.sendMail();
      return true;
    }
    catch (MessagingException e) {
      LogUtils.log(e);
      return false;
View Full Code Here

Examples of de.chris_soft.utilities.SendHtmlMailUtils.sendMail()

      String fulltext = metadata.getProperty(Metadata.FULLTEXT);
      String htmltext = HtmlFormatter.getHtmlString(fulltext, false, false);
      mail.setText("<p>" + htmltext + "</p>");
    }
    try {
      mail.sendMail();
      return true;
    }
    catch (MessagingException e) {
      LogUtils.log(e);
      return false;
View Full Code Here

Examples of de.chris_soft.utilities.SendHtmlMailUtils.sendMail()

          mail.setPop3Host(AppProperties.getProperty(MailKeys.PROP_KEY_SENDER_POP3_SERVER));
          int smptPort = Integer.parseInt(AppProperties.getProperty(MailKeys.PROP_KEY_SENDER_SMTP_PORT));
          mail.setSmtp(AppProperties.getProperty(MailKeys.PROP_KEY_SENDER_SMTP_SERVER), smptPort);
          mail.setSubject("Your zipped documents");
          mail.setText("");
          mail.sendMail();
        }
        catch (Exception e) {
          LogUtils.log(e);
          SwingUtils.showError(God.appWindow.frame, "Problems when sending documents mail! [" + e.getMessage() + "]");
        }
View Full Code Here

Examples of er.javamail.ERMailDelivery.sendMail()

                    ERMailDelivery delivery = createMailDeliveryForMailMessage(mailMessage);

                    if (delivery != null) {
                        mailMessage.setState(ERCMailState.PROCESSING_STATE);
                        mailMessage.editingContext().saveChanges(); // This will throw if optimistic locking occurs
                        delivery.sendMail(true);

                        mailMessage.setState(ERCMailState.SENT_STATE);
                        mailMessage.setDateSent(new NSTimestamp());                           
                       
                        if (shouldDeleteSentMail()) {
View Full Code Here

Examples of er.javamail.ERMailDeliveryHTML.sendMail()

      mail.setFromAddress("donotreply@secret-pal.com");
      mail.setReplyToAddress("donotreply@secret-pal.com");
      mail.setSubject(subject);
      mail.setToAddresses(new NSArray<String>(person.emailAddress()));
      mail.setDelegate(delegate);
      mail.sendMail();
      sentEmail = true;
    } catch (Exception e) {
      EOEditingContext editingContext = ERXEC.newEditingContext();
      try {
        person.localInstanceIn(editingContext).setEmailDeliveryFailure(Boolean.TRUE);
View Full Code Here

Examples of er.javamail.ERMailDeliveryPlainText.sendMail()

      plainText.newMail();
      plainText.setFromAddress(fromEmail);
      plainText.setToAddresses(recipients);
      plainText.setSubject(subject);
      plainText.setTextContent(textContent);
      plainText.sendMail(false);
    }
    catch (AddressException e)
    {
      log.error("Method: sendMail: ", e);
    }
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.