Examples of Email


Examples of org.magicbox.dto.Email

        annunciService.insertAnnuncio(annuncio);
    }

    public void accodaMail(String to, String toMail, String oggettoMail, String msg) {
        mailQueue.aggiungi(new Email(to, toMail, oggettoMail, msg));
    }
View Full Code Here

Examples of org.nutz.lang.meta.Email

    assertEquals("B", d.args[1]);
  }

  @Test
  public void testBornEmail() {
    Email email = Mirror.me(Email.class).born("a@b.com");
    assertEquals("a", email.getAccount());
    assertEquals("b.com", email.getHost());

    email = Mirror.me(Email.class).born();
    email.setAccount("a");
    email.setHost("b.com");
    assertEquals("a", email.getAccount());
    assertEquals("b.com", email.getHost());
  }
View Full Code Here

Examples of org.nutz.lang.meta.Email

  public void testString2int() throws FailToCastObjectException {
    assertEquals(45, (int) Castors.me().castTo("45", int.class));
  }

  public void testString2Email() throws FailToCastObjectException {
    Email em = new Email("zozoh@263.net");
    assertEquals(em, "zozoh@263.net");
  }
View Full Code Here

Examples of org.nutz.lang.meta.Email

    assertTrue(Arrays.equals(inAry, reAry));
  }

  @Test
  public void testArray2String() throws Exception {
    Email[] mails = {new Email("zzh@263.net"), new Email("zozohtnt@yahoo.com.cn")};
    String done = Castors.me().castToString(mails);
    Email[] mails2 = Castors.me().castTo(done, Email[].class);
    assertTrue(Lang.equals(mails, mails2));
  }
View Full Code Here

Examples of org.nutz.lang.meta.Email

  }

  @Test
  public void testString2Array() throws Exception {
    String orgs = "zzh@263.net,zozohtnt@yahoo.com.cn";
    Email[] exp = {new Email("zzh@263.net"), new Email("zozohtnt@yahoo.com.cn")};
    Email[] done = Castors.me().castTo(orgs, Email[].class);
    assertTrue(Arrays.equals(exp, done));
  }
View Full Code Here

Examples of org.nutz.lang.meta.Email

public class String2Email extends Castor<String, Email> {

  @Override
  public Email cast(String src, Class<?> toType, String... args) {
    return new Email(src);
  }
View Full Code Here

Examples of org.openbravo.erpCommon.businessUtility.EMail

          log4j.debug(smtpHost + "\n" + from + "\n" + to + "\n" + data[0].mailsubject + "\n"
              + data[0].mailtext);
        if (log4j.isDebugEnabled())
          log4j
              .debug("*************************************************************************************************");
        EMail email = new EMail(vars, smtpHost, from, to, data[0].mailsubject, data[0].mailtext);
        msg = email.send();
        if ("OK".equals(msg)) {
          RequestActionData.update(conn, this, Utility.messageBD(this, "RequestActionEMailOK", vars
              .getLanguage()), strKey);
        } else {
          RequestActionData.update(conn, this, Utility.messageBD(this, "RequestActionEMailError",
              vars.getLanguage())
              + " - " + msg, strKey);
        }
      } else if (data[0].actiontype.equals("T")) {
        String subject = Utility.messageBD(this, "RequestActionTransfer", vars.getLanguage());

        RequestActionData.update(conn, this, subject, strKey);
        String smtpHost = EmailData.selectSMTPHost(conn, this, data[0].adClientId);
        String to = "";
        EmailData[] dataTo = EmailData.selectEmail(conn, this, data[0].adUserId);
        if (dataTo != null && dataTo.length > 0) {
          to = dataTo[0].email;
        }
        to = to.trim().toLowerCase();
        for (int pos = to.indexOf(" "); pos != -1; pos = to.indexOf(" "))
          to = to.substring(0, pos) + to.substring(pos + 1);

        if (to.equals("")) {
          to = System.getProperty("user.name") + "@"
              + Utility.getContext(this, vars, "#AD_Client_Name", windowId) + ".com";
          to = to.trim().toLowerCase();
          for (int pos = to.indexOf(" "); pos != -1; pos = to.indexOf(" "))
            to = to.substring(0, pos) + to.substring(pos + 1);
        }
        String from = "";
        EmailData[] mails = EmailData.selectEmail(conn, this, data[0].updatedby);
        if (mails == null || mails.length == 0) {
          mails = EmailData.selectEmailRequest(conn, this, data[0].adClientId);
          if (mails != null && mails.length > 0) {
            from = mails[0].email;
            from = from.trim().toLowerCase();
            for (int pos = from.indexOf(" "); pos != -1; pos = from.indexOf(" "))
              from = from.substring(0, pos) + from.substring(pos + 1);
            vars.setSessionValue("#Request_EMail", from);
            vars.setSessionValue("#Request_EMailUser", mails[0].emailuser);
            vars.setSessionValue("#Request_EMailUserPw", mails[0].emailuserpw);
          }
        } else {
          from = mails[0].email;
          from = from.trim().toLowerCase();
          for (int pos = from.indexOf(" "); pos != -1; pos = from.indexOf(" "))
            from = from.substring(0, pos) + from.substring(pos + 1);
          vars.setSessionValue("#User_EMail", from);
          vars.setSessionValue("#User_EMailUser", mails[0].emailuser);
          vars.setSessionValue("#User_EMailUserPw", mails[0].emailuserpw);
        }

        if (from.equals("")) {
          from = System.getProperty("user.name") + "@"
              + Utility.getContext(this, vars, "#AD_Client_Name", windowId) + ".com";
          from = from.trim().toLowerCase();
          for (int pos = from.indexOf(" "); pos != -1; pos = from.indexOf(" "))
            from = from.substring(0, pos) + from.substring(pos + 1);
        }
        String message = subject + "\n" + data[0].summary;
        if (log4j.isDebugEnabled())
          log4j
              .debug("*************************************************************************************************");
        if (log4j.isDebugEnabled())
          log4j.debug(smtpHost + "\n" + from + "\n" + to + "\n" + subject + "\n" + message);
        if (log4j.isDebugEnabled())
          log4j
              .debug("*************************************************************************************************");
        EMail email = new EMail(vars, smtpHost, from, to, subject, message);
        email.send();
      }

      releaseCommitConnection(conn);
    } catch (Exception e) {
      try {
View Full Code Here

Examples of org.openiaml.model.model.messaging.Email

    // Email is not in Parents
    assertFalse(ParentNamesTestCase.getParentNameElements().contains(MessagingPackage.eINSTANCE.getEmail()));

    // create an Email
    Email page = gmf.createEmail(root);
    assertNotNull(page);

    // set name
    gmf.setName(page, "my email");
    assertEquals(page.getName(), "my email");

    // find the edit part for this element
    ShapeNodeEditPart part = assertHasEmail(editor, "my email");
    assertNotNull(part);
View Full Code Here

Examples of org.springmodules.email.Email

        sender = new JavaMailEmailSender();
    }

    public void testGenerateMimeMessagePreparator() throws Exception {

        Email email = new Email();
        email.setFrom("From", "from@bla.com");
        email.setReplyTo("Reply To", "replyto@bla.com");
        email.setTo("to@bla.com");
        email.setCc("cc@bla.com");
        email.setBcc("bcc@bla.com");
        email.setPriority(EmailPriority.HIGH);
        email.setSubject("subject");
        email.setTextBody("text");

        MimeMessagePreparator preparator = sender.generateMimeMessagePreparator(email, "UTF-8");
        MimeMessage mimeMessage = createMimeMessage();
        preparator.prepare(mimeMessage);
View Full Code Here

Examples of org.springmodules.email.Email

    public void send(String emailName, Map model, EmailPreparator emailPreparator) {
        send(emailName, model, null, emailPreparator);
    }

    public void send(String emailName, Map model, Locale locale, EmailPreparator emailPreparator) {
        Email email = resolveEmail(emailName, model, locale);
        email = emailPreparator.prepare(email);
        send(email);
    }
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.