Examples of Email


Examples of com.im.imjutil.email.Email

   
    Thread thread = new Thread() {
      @Override
      public void run() {
        try {
          Email email = new Email();
          // Cria a mensagem
          email.setSubject(Convert.toString(
              "[ATENCAO] Ocorreu um erro no sistema: ",
              Configurator.getProperty("system.name")
          ));
         
          String machine;
          try {
             NetworkInterface ni = NetworkInterface.getByName("eth0");
             machine = ni.toString().replaceAll("\\n", " ");
          } catch (Exception e) {
             machine = "DESCONHECIDA";
          }
         
          email.setMessage(Convert.toString(
              "<h2>ATENCAO: Ocorreu um erro no sistema!</h2>",
              "* Maquina: ", machine, "<br>",
              "* Produto: ",
              Configurator.getProperty("system.name"), "<br>",
              "* Versao: ",
              Configurator.getProperty("system.version"), "<br>",
              "* Mensagem: ", message, "<br>",
              "* Codigo de erro: ", code, "<br>",
              "* Erro: ", error.getClass().getSimpleName(),
              " -- ", error.getMessage(),
              (
                error.getCause() != null ? Convert.toString(
                " -- | -- Caused by: ",
                error.getCause().getClass().getSimpleName(),
                " -- ", error.getCause().getMessage()) : ""
                ),
              "<br>",
              "* Stacktrace: em anexo"
          ));

          // Configura os envolvidos a receber a notificao.
          String to = Configurator.getProperty("system.email");
          email.setTo(Arrays.asList(to.split("\\s*[,;]\\s*")));

          // Cria o arquivo com o stacktrace do erro e anexa ao email
          File fileError = File.createTempFile(Convert.toString(
              "errocode_", code, "---"), ".txt");
          PrintWriter print = new PrintWriter(fileError);
          error.printStackTrace(print);
          print.close();
          email.addAttachment(fileError);
         
          // Envia o email para os destinatarios configurados.
          EmailSender.send(email);
       
        } catch (Exception e) {
View Full Code Here

Examples of com.petrituononen.customerdb.jaxb.Email

   * @param type
   * @param value
   * @return Email
   */
  public static Email createEmail(String type, String value) {
    Email email = factory.createEmail();
    email.setType(type);
    email.setValue(value);
   
    return email;
  }
View Full Code Here

Examples of com.seyren.core.util.email.Email

   
    @Override
    public void sendNotification(Check check, Subscription subscription, List<Alert> alerts) {
       
        try {
            Email email = new Email()
                    .withTo(subscription.getTarget())
                    .withFrom(seyrenConfig.getSmtpFrom())
                    .withSubject(emailHelper.createSubject(check))
                    .withMessage(emailHelper.createBody(check, subscription, alerts));
           
View Full Code Here

Examples of com.stimulus.archiva.domain.Email

 
  protected static final Logger logger = Logger.getLogger(LegacyFetchMessage.class.getName());
     public void fetchMessage(Search.Result result) {
         try {
        
           Email email = MessageService.getMessageByID(result.getEmailId(),true);
         result.setSubject(email.getSubject());
         result.setFromAddress(email.getFromAddress(Email.DisplayMode.NAME_ONLY));
         result.setToAddresses(email.getToAddresses(Email.DisplayMode.NAME_ONLY));
         result.setSize(email.getSize());
         result.setSentDate(email.getSentDate());
           result.setHasAttachment(email.hasAttachment());
           result.setPriority(email.getPriorityID());
           
         } catch (Exception e) {
             logger.error("failed to retrieve message during construction of search results. Encryption password correct?  Cause:" + e.getMessage());
             logger.debug("failed to retrieve message during construction of search results. Encryption password correct? Cause:", e);
        
View Full Code Here

Examples of com.sun.xml.registry.uddi.bindings_v2_2.Email

    /**
     * Create an instance of {@link Email }
     *
     */
    public Email createEmail() {
        return new Email();
    }
View Full Code Here

Examples of de.javakaffee.kryoserializers.TestClasses.Email

    }
   
    @SuppressWarnings( "unchecked" )
    @Test( enabled = true )
    public void testJavaUtilArraysAsListEmail() throws Exception {
        final Holder<List<Email>> asListHolder = new Holder<List<Email>>( Arrays.asList( new Email( "foo", "foo@example.org" ) ) );
        final Holder<List<Email>> deserialized = deserialize( serialize( asListHolder ), Holder.class );
        assertDeepEquals( deserialized, asListHolder );
    }
View Full Code Here

Examples of de.javakaffee.web.msm.serializer.javolution.TestClasses.Email

    }

    @DataProvider( name = "sharedObjectIdentityProvider" )
    protected Object[][] createSharedObjectIdentityProviderData() {
        return new Object[][] { { AtomicInteger.class.getSimpleName(), new AtomicInteger( 42 ) },
                { Email.class.getSimpleName(), new Email( "foo bar", "foo.bar@example.com" ) } };
    }
View Full Code Here

Examples of ecar.pojo.Email

     * @param usu
     * @return
     */
    public Email setEmail(HttpServletRequest request, UsuarioUsu usu){
    try{
      Email email = new Email(usu);
      email.setCodEmail(Long.valueOf(Pagina.getParam(request,"codEmail")));
      return email;
    }
    catch(Exception e){
      logger.error(e);
      return null;
View Full Code Here

Examples of enterprise.web.tookit.email.Email

      InitialContext context = new InitialContext();
      Object ref = context.lookup("ejb/EmailBean");

      EmailBeanRemote emailService = (EmailBeanRemote) ref;

      Email obterConfiguracaoEmail = emailService.obterConfiguracaoEmail();

      System.out.println(obterConfiguracaoEmail);

    } catch (NamingException e) {
      e.printStackTrace();
View Full Code Here

Examples of it.eng.spagobi.tools.distributionlist.bo.Email

      if (profile!=null) userId=(String)((UserProfile)profile).getUserId();
      //load the dl
      dl = DAOFactory.getDistributionListDAO().loadDistributionListById(new Integer(id));
      //load the user
      Email user = new Email();
      user.setEmail(email);
      user.setUserId(userId);
      //subscribe to the dl
      IDistributionListDAO dao=DAOFactory.getDistributionListDAO();
      dao.setUserProfile(profile);
      dao.subscribeToDistributionList(dl,user);
    }
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.