Examples of SMTPSender


Examples of com.elastisys.scale.commons.net.smtp.SmtpSender

          this.sendSettings.getRecipients(), alert);
      SmtpMessage email = new SmtpMessage(
          this.sendSettings.getRecipients(),
          this.sendSettings.getSender(),
          this.sendSettings.getSubject(), alertMessage, UtcTime.now());
      new SmtpSender(email, this.smtpServerSettings).call();
    } catch (Exception e) {
      LOG.error(String.format(
          "failed to send alert message: %s\nAlert message was: %s",
          e.getMessage(), alertMessage), e);
    }
View Full Code Here

Examples of com.ericdaugherty.mail.server.services.smtp.SMTPSender

            smtpListener = new ServiceListener( port, SMTPProcessor.class, executeThreads );
            new Thread( smtpListener, "SMTP" ).start();

            //Start the SMTPSender thread (This thread actually delivers the mail recieved
            //by the SMTP threads.
            smtpSender = new SMTPSender();
            smtpSenderThread = new Thread( smtpSender, "SMTPSender" );
            smtpSenderThread.start();

            //Initialize ShutdownService
            shutdownService = new ShutdownService();
View Full Code Here

Examples of com.zeonfederated.mailclient.senders.SmtpSender

    pack();
  }
 
  private void sendMail() {
    // Eigene Implementation:
    Sender sender = new SmtpSender(config.get("send.host", "localhost"), Integer.parseInt(config.get("send.port", "25")));
   
    // Javamail:
    // Sender sender = new JavamailSender(config.get("send.host", "localhost"), Integer.parseInt(config.get("send.port", "25")));
    Message msg = new Message();
   
    msg.setFrom(config.get("my.name") + " <" + config.get("my.email") + ">");
    msg.setTo(to.getText() + ", " + cc.getText());
    msg.setBcc(bcc.getText());
    msg.setSubject(subject.getText());
    msg.setBody(body.getText());
    msg.setSentDate(new Date());
   
    if(! sender.connect()) {
      statusTxt.setText("Konnte mit dem Mailhost nicht verbinden");
      return;
    }
   
    if(sender.send(msg)) {
      sender.close();
    } else {
      statusTxt.setText("Konnte die Nachricht nicht absenden");
      return;
    }
View Full Code Here

Examples of org.runningman.mailutils.SMTPSender

public class SendEmail implements Command {
        public void perform(CommandData data) throws Exception {
                Collection<File> files =
                        (Collection<File>) data.getValue(Keys.SOURCE_FILES);
                Credentials credentials = (Credentials) data.getValue(Keys.CREDENTIALS);
                SMTPSender sender = new SMTPSender();
                sender.setCredentials(credentials);
                MessageData messageData = (MessageData) data.getValue(Keys.MESSAGE_DATA);
                messageData.addFiles(files);
                messageData.setSubject("Sending file.");
                messageData.setContent("");
                sender.send(messageData);
                JOptionPane.showMessageDialog(null, "Отправлено.");
        }
View Full Code Here

Examples of org.runningman.mailutils.SMTPSender

public class SendEmail implements Command {
        public void perform(CommandData data) throws Exception {
                Collection<File> files =
                        (Collection<File>) data.getValue(Keys.SOURCE_FILES);
                Credentials credentials = (Credentials) data.getValue(Keys.CREDENTIALS);
                SMTPSender sender = new SMTPSender();
                sender.setCredentials(credentials);
                MessageData messageData = (MessageData) data.getValue(Keys.MESSAGE_DATA);
                messageData.addFiles(files);
                messageData.setSubject("Sending file.");
                messageData.setContent("");
                sender.send(messageData);
                JOptionPane.showMessageDialog(null, "Отправлено.");
        }
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.