Examples of Mail


Examples of com.ourlinc.helloworld.model.Mail

      request.setAttribute("needAuth", needAuth);
      return "activity/sendemail";
    }
    // 发送邮件
    boolean flag = false;
    Mail mail = new Mail(email, password);
    try {
      if ("add".equals(op)) {
        mail.send(email, toAddresses, null, "活动通知", EmailTemplates
            .buildAddContent(act.getTime(), act.getTitle(), act
                .getId()));
      } else if ("edit".equals(op)) {
        mail.send(email, toAddresses, null, "活动修改通知", EmailTemplates
            .buildEditContent(act.getTime(), act.getTitle(),
                EmailConfig.getValue("editContent"), act
                    .getId()));
      } else if ("cancel".equals(op)) {
        mail.send(email, toAddresses, null, "活动取消通知", EmailTemplates
            .buildCancelContent(act.getTime(), act.getTitle()));
      }
      flag = true;
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of com.trulytech.mantis.util.Mail

  protected String PerformPost(HttpServletRequest request,
      HttpServletResponse response, SQLParser Parser) throws Exception

  {

    Mail mail = new Mail();
    mail.setFrom(getParameter(request, "from"));
    mail.setTo(getParameter(request, "to"));
    mail.setMsg(getParameter(request, "msg"));
    mail.setSubject(getParameter(request, "subject"));
    mail.setContentType("text/html;charset=gb2312");

    mail.sendMsgMail();

    request.setAttribute("Info", "发送成功!");
    return "success.jsp";
  }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.Mail

        if (_core.getMailConfig() == null) {
            throw new WGMailException("No mail configuration available");
        }
       
        try {
            Mail mail = new Mail(_core.getMailConfig());
            mail.setMimeType(mimeType);
            return mail;
        }
        catch (UnsupportedEncodingException e) {
            throw new WGMailException("Exception creating mail object", e);
        }
View Full Code Here

Examples of example.proto.Mail

        startServer();
        System.out.println("Server started");

        NettyTransceiver client = new NettyTransceiver(new InetSocketAddress(65111));
        // client code - attach to the server and send a message
        Mail proxy = (Mail) SpecificRequestor.getClient(Mail.class, client);
        System.out.println("Client built, got proxy");

        // fill in the Message record and send it
        Message message = new Message();
        message.setTo(new Utf8(args[0]));
        message.setFrom(new Utf8(args[1]));
        message.setBody(new Utf8(args[2]));
        System.out.println("Calling proxy.send with message:  " + message.toString());
        System.out.println("Result: " + proxy.send(message));

        // cleanup
        client.close();
        server.close();
    }
View Full Code Here

Examples of lazyj.mail.Mail

    ts.addAll(m.sTo);
   
    if (ts.size()==0)
      return false;
   
    final Mail mail = new Mail();
    mail.sFrom = sFrom;
    mail.sTo = Message.setToList(ts);
    mail.sBody = m.sMessage!=null ? m.sMessage : this.sDefaultMessage;
    mail.sSubject = m.sSubject!=null ? m.sSubject : this.sDefaultSubject;
   
View Full Code Here

Examples of lineage2.gameserver.model.mail.Mail

      int myBirthdayReceiveYear = activeChar.getVarInt(Player.MY_BIRTHDAY_RECEIVE_YEAR, 0);
      if ((create.get(Calendar.MONTH) == now.get(Calendar.MONTH)) && (create.get(Calendar.DAY_OF_MONTH) == day))
      {
        if (((myBirthdayReceiveYear == 0) && (create.get(Calendar.YEAR) != now.get(Calendar.YEAR))) || ((myBirthdayReceiveYear > 0) && (myBirthdayReceiveYear != now.get(Calendar.YEAR))))
        {
          Mail mail = new Mail();
          mail.setSenderId(1);
          mail.setSenderName(StringHolder.getInstance().getNotNull(activeChar, "birthday.npc"));
          mail.setReceiverId(activeChar.getObjectId());
          mail.setReceiverName(activeChar.getName());
          mail.setTopic(StringHolder.getInstance().getNotNull(activeChar, "birthday.title"));
          mail.setBody(StringHolder.getInstance().getNotNull(activeChar, "birthday.text"));
          ItemInstance item = ItemFunctions.createItem(21169);
          item.setLocation(ItemInstance.ItemLocation.MAIL);
          item.setCount(1L);
          item.save();
          mail.addAttachment(item);
          mail.setUnread(true);
          mail.setType(Mail.SenderType.BIRTHDAY);
          mail.setExpireTime((720 * 3600) + (int) (System.currentTimeMillis() / 1000L));
          mail.save();
          activeChar.setVar(Player.MY_BIRTHDAY_RECEIVE_YEAR, String.valueOf(now.get(Calendar.YEAR)), -1);
        }
      }
    }
    if (activeChar.getClan() != null)
View Full Code Here

Examples of mireka.transmission.Mail

            mail.scheduleDate = mail.arrivalDate;
            for (Map.Entry<ResponsibleDestination, DestinationState> entry : destinations
                    .entrySet()) {
                ResponsibleDestination destination = entry.getKey();
                DestinationState destinationState = entry.getValue();
                Mail destinationMail = mail.copy();
                List<RecipientContext> recipientContexts =
                        destinationState.recipientContexts;
                for (RecipientContext recipientContext : recipientContexts) {
                    destinationMail.recipients.add(recipientContext.recipient);
                }
View Full Code Here

Examples of mireka.transmission.Mail

        }
    }

    private void sendMail(Mail srcMail, MimeMessage mimeMessage)
            throws RejectExceptionExt {
        Mail mail = new Mail();
        mail.from = reversePath;
        try {
            mail.recipients.add(new MailAddressFactory()
                    .createRecipient(recipient));
        } catch (ParseException e) {
View Full Code Here

Examples of mireka.transmission.Mail

        props.setInt("deliveryAttempts", mail.deliveryAttempts);
        props.setInt("postpones", mail.postpones);
    }

    public Mail readFromProperties(DataProperties props) {
        Mail mail = new Mail();
        mail.from =
                new MailAddressFactory().createReversePathAlreadyVerified(props
                        .getString("from"));
        mail.recipients =
                props.getList("recipients",
View Full Code Here

Examples of mireka.transmission.Mail

    }

    @Override
    public void run() {
        logger.debug("Processing mail named " + mailName + "...");
        Mail mail;
        try {
            mail = dir.read(mailName);
        } catch (QueueStorageException e) {
            logger.error("Cannot read mail. Mail will remain in the queue, "
                    + "but it won't be retried until the "
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.