Examples of Email


Examples of org.apache.juddi.datatype.Email

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    Email email = (Email)object;
    String generic = getGeneric(null);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);

    String useType = email.getUseType();
    if ((useType != null) && (useType.trim().length() > 0))
      element.setAttribute("useType",useType);

    String emailValue = email.getValue();
    if (emailValue != null)
      element.appendChild(parent.getOwnerDocument().createTextNode(emailValue));

    parent.appendChild(element);
  }
View Full Code Here

Examples of org.apache.juddi.datatype.Email

    Contact contact = new Contact();
    contact.setUseType("myAddressUseType");
    contact.setPersonNameValue("Bob Whatever");
    contact.addDescription(new Description("Bob is a big fat jerk"));
    contact.addDescription(new Description("obBay sIay a igBay atFay erkJay","es"));
    contact.addEmail(new Email("bob@whatever.com"));
    contact.addPhone(new Phone("(603)559-1901"));
    contact.addAddress(address);

    Contacts contacts = new Contacts();
    contacts.addContact(contact);
View Full Code Here

Examples of org.apache.servicemix.examples.cxf.base.Email

    public void init(){
        random = new Random();
        spam = new Email[3];
        String youradress = "you@mail.com";
        spam[0] = new Email("free@cookieman.com",youradress,"Free Cookies!","Send us 10 dollar for a FREE basket full of delicious cookies!");
        spam[1] = new Email("youwon@lottery.com",youradress,"You are a WINNER!","You won the jackpot 100.000.000, please claim your price at our HQ in Atlantis.");
        spam[2] = new Email("gold@theshinymarket.com",youradress,"Buy cheap gold now!","Please send us your credit card number and receive gold at very cheap prices!");
    }
View Full Code Here

Examples of org.apache.tapestry5.validator.Email

        configuration.add("minlength", new MinLength());
        configuration.add("maxlength", new MaxLength());
        configuration.add("min", new Min());
        configuration.add("max", new Max());
        configuration.add("regexp", new Regexp());
        configuration.add("email", new Email());
        configuration.add("none", new None());
    }
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.Email

            Iterator iter = ec.iterator();
      int emailarrPos = 0;
      while (iter.hasNext()) {
                EmailAddress ea = (EmailAddress) iter.next();
        Email email = objectFactory.createEmail();
       
        if (ea.getAddress() != null) {
          email.setValue(ea.getAddress());
        }
        // email.setText( ea.getAddress() );
       
        if (ea.getType() != null) {
                email.setUseType(ea.getType());
            }

        emailarr[emailarrPos] = email;
        emailarrPos++;
      }
View Full Code Here

Examples of org.apache.ws.scout.uddi.Email

            Iterator iter = ec.iterator();
      int emailarrPos = 0;
      while (iter.hasNext()) {
                EmailAddress ea = (EmailAddress) iter.next();
        Email email = Email.Factory.newInstance();
       
        if (ea.getAddress() != null) {
          email.setStringValue(ea.getAddress());
        }
        // email.setText( ea.getAddress() );
       
        if (ea.getType() != null) {
                email.setUseType(ea.getType());
            }

        emailarr[emailarrPos] = email;
        emailarrPos++;
      }
View Full Code Here

Examples of org.compiere.util.EMail

        ReportEngine re = new ReportEngine(getCtx(), format, query, info);
        boolean printed = false;
        if (p_EMailPDF)
        {
          String subject = mText.getMailHeader() + " - " + DocumentNo;
          EMail email = client.createEMail(to.getEMail(), subject, null);
          if (!email.isValid())
          {
            addLog (C_Invoice_ID, null, null,
              DocumentNo + " @RequestActionEMailError@ Invalid EMail: " + to);
            errors++;
            continue;
          }
          mText.setUser(to);          //  Context
          mText.setBPartner(C_BPartner_ID)//  Context
          mText.setPO(new MInvoice(getCtx(), C_Invoice_ID, get_TrxName()));
          String message = mText.getMailText(true);
          if (mText.isHtml())
            email.setMessageHTML(subject, message);
          else
          {
            email.setSubject (subject);
            email.setMessageText (message);
          }
          //
          File invoice = null;
          if (!Ini.isClient())
            invoice = new File(MInvoice.getPDFFileName(documentDir, C_Invoice_ID));
          File attachment = re.getPDF(invoice);
          log.fine(to + " - " + attachment);
          email.addAttachment(attachment);
          //
          String msg = email.send();
          MUserMail um = new MUserMail(mText, getAD_User_ID(), email);
          um.save();
          if (msg.equals(EMail.SENT_OK))
          {
            addLog (C_Invoice_ID, null, null,
View Full Code Here

Examples of org.dmlite.type.email.Email

                throw new TypeException("Not a valid URL: "
                    + propertyStringValue + " ("
                    + conceptDotProperty + ")");
              }
            } else if (propertyClass == Email.class) {
              Email propertyEmailValue = Transformer
                  .email(propertyStringValue);
              if (propertyEmailValue != null) {
                entity.setProperty(propertyCode,
                    propertyEmailValue);
              } else {
View Full Code Here

Examples of org.dspace.core.Email

    {

        MailDTO dto = (MailDTO) command;

        // send mail
        Email email = Email.getEmail(ConfigurationManager
                .getProperty("dspace.dir")
                + File.separatorChar
                + "config"
                + File.separatorChar
                + "emails"
                + File.separatorChar + dto.getTemplate());
        email.addArgument(dto.getRp());
        email.addArgument(dto.getText());
        email.addRecipient(ConfigurationManager
                .getProperty("feedback.recipient"));
        email.setReplyTo(UIUtil.obtainContext(request).getCurrentUser()
                .getEmail());
        email.send();
        return new ModelAndView(getSuccessView() + dto.getRp());
    }
View Full Code Here

Examples of org.dspace.core.Email

        try {
            String recipient = ConfigurationManager
                    .getProperty("alert.recipient");

            if (recipient != null) {
                Email email = Email
                        .getEmail(I18nUtil.getEmailFilename(
                                Locale.getDefault(), "internal_error"));
                email.addRecipient(recipient);
                email.addArgument(ConfigurationManager
                        .getProperty("dspace.url"));
                email.addArgument(new Date());

                String stackTrace;

                if (exception != null) {
                    StringWriter sw = new StringWriter();
                    PrintWriter pw = new PrintWriter(sw);
                    exception.printStackTrace(pw);
                    pw.flush();
                    stackTrace = sw.toString();
                } else {
                    stackTrace = "No exception";
                }

                email.addArgument(stackTrace);
                email.send();
            }
        } catch (Exception e) {
            // Not much we can do here!
            log.warn("Unable to send email alert", 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.