Examples of addFrom()


Examples of com.jme3.shader.DefineList.addFrom()

    private static void checkMatDef(String matdefName){
        MaterialDef def = (MaterialDef) assetManager.loadAsset(matdefName);
        for (TechniqueDef techDef : def.getDefaultTechniques()){
            if (techDef.isUsingShaders()){
                DefineList dl = new DefineList();
                dl.addFrom(techDef.getShaderPresetDefines());
                ShaderKey shaderKey = new ShaderKey(techDef.getVertexShaderName(),
                                                    techDef.getFragmentShaderName(),
                                                    dl,
                                                    techDef.getVertexShaderLanguage(),
                                                    techDef.getFragmentShaderLanguage());
View Full Code Here

Examples of com.sun.mail.smtp.SMTPMessage.addFrom()

      // Set From and Reply-To addresses
    if (DebugFile.trace) {
      DebugFile.writeln("from "+aFrom[0].getAddress());
      DebugFile.writeln("reply-to "+aReply[0].getAddress());
    }
      oSentMsg.addFrom(aFrom);
      oSentMsg.setReplyTo(aReply);

    // Request read notification
    String sNotification = getParameter("notification");
      if (Activated.equals(sNotification) || Yes.equals(sNotification)) {
View Full Code Here

Examples of com.typesafe.plugin.MailerAPI.addFrom()

        public void run() {
            MailerAPI email = play.Play.application().plugin(MailerPlugin.class).email();

            final Configuration root = Configuration.root();
            final String mailFrom = root.getString("mail.from");
            email.addFrom(mailFrom);
            email.setSubject(envelop.subject);
            for (String toEmail : envelop.toEmails) {
                email.addRecipient(toEmail);
                log.debug("Mail will be sent to {}", toEmail);
            }
View Full Code Here

Examples of javax.mail.Message.addFrom()

        }
       
                msg.setRecipient(Message.RecipientType.TO, new InternetAddress(toAddress));
        InternetAddress[] fromAddr = new InternetAddress[1];
        fromAddr[0] = new InternetAddress(config.getFromAddress());
        msg.addFrom(fromAddr);
       
        msg.setSentDate(new Date());
        msg.setSubject(notification.getSubject());
       
        msg.setHeader(WGAMailNotification.HEADERFIELD_TYPE, notification.getType());
View Full Code Here

Examples of javax.mail.internet.MimeMessage.addFrom()

  {
    try {
      MimeMessage msg = new MimeMessage(getSession());

      if(_from.length > 0)
        msg.addFrom(_from);
      msg.addRecipients(RecipientType.TO, _to);
      if(subject != null)
        msg.setSubject(subject);
      msg.setContent(body, "text/plain");
View Full Code Here

Examples of javax.mail.internet.MimeMessage.addFrom()

    message.setSubject(subject);
    message.setRecipients(Message.RecipientType.TO,
        emailToInternetAddressArray(toEmailAddresses));
    message.setRecipients(Message.RecipientType.CC,
        emailToInternetAddressArray(ccEmailAddresses));
    message.addFrom(InternetAddress.parse(fromAddress));
    message.setSentDate(new Date());
    BodyPart mainBody = new MimeBodyPart();
    mainBody.setContent(content, "text/html;charset=gbk");
    multipart.addBodyPart(mainBody);
    for (Entry<String, String> e : mailAttachment.entrySet()) {
View Full Code Here

Examples of javax.mail.internet.MimeMessage.addFrom()

    message.setSubject(subject);
    message.setRecipients(Message.RecipientType.TO,
        emailToInternetAddressArray(toEmailAddresses));
    message.setRecipients(Message.RecipientType.CC,
        emailToInternetAddressArray(ccEmailAddresses));
    message.addFrom(InternetAddress.parse(fromAddress));
    message.setSentDate(new Date());
    BodyPart mainBody = new MimeBodyPart();
    mainBody.setContent(content, "text/html;charset=gbk");
    multipart.addBodyPart(mainBody);
    for (Entry<String, String> e : mailAttachment.entrySet()) {
View Full Code Here

Examples of javax.mail.internet.MimeMessage.addFrom()

    public void testDKIMSignMessageAsText() throws MessagingException,
            IOException, FailException {
        MimeMessage mm = new MimeMessage(Session
                .getDefaultInstance(new Properties()));
        mm.addFrom(new Address[] { new InternetAddress("io@bago.org") });
        mm.addRecipient(RecipientType.TO, new InternetAddress("io@bago.org"));
        mm.setText("An 8bit encoded body with \u20ACuro symbol.", "ISO-8859-15");

        Mailet mailet = new DKIMSign();
View Full Code Here

Examples of javax.mail.internet.MimeMessage.addFrom()

    public void testDKIMSignMessageAsObjectConvertedTo7Bit()
            throws MessagingException, IOException, FailException {
        MimeMessage mm = new MimeMessage(Session
                .getDefaultInstance(new Properties()));
        mm.addFrom(new Address[] { new InternetAddress("io@bago.org") });
        mm.addRecipient(RecipientType.TO, new InternetAddress("io@bago.org"));
        mm.setContent("An 8bit encoded body with \u20ACuro symbol.",
                "text/plain; charset=iso-8859-15");
        mm.setHeader("Content-Transfer-Encoding", "8bit");
        mm.saveChanges();
View Full Code Here

Examples of javax.mail.internet.MimeMessage.addFrom()

    public void testDKIMSignMessageAsObjectNotConverted()
            throws MessagingException, IOException, FailException {
        MimeMessage mm = new MimeMessage(Session
                .getDefaultInstance(new Properties()));
        mm.addFrom(new Address[] { new InternetAddress("io@bago.org") });
        mm.addRecipient(RecipientType.TO, new InternetAddress("io@bago.org"));
        mm.setContent("An 8bit encoded body with \u20ACuro symbol.",
                "text/plain; charset=iso-8859-15");
        mm.setHeader("Content-Transfer-Encoding", "8bit");
        mm.saveChanges();
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.