[jboss-user] [JBoss jBPM] - Re: Mail Node

Fornachari do-not-reply at jboss.com
Mon Jun 23 12:26:18 EDT 2008


I did a program in Java, using the class javax.mail, and, using the code below, I can send email, using the same smtp server and the same email address that I tried in jBPM:

  | Properties p = new Properties();
  | p.put("mail.host", "MyServerSMTP"); 
  | Session session = Session.getInstance(p, null);
  | MimeMessage msg = new MimeMessage(session); 
  | msg.setFrom(new InternetAddress("request.notify at workflowmachine.com"));
  | msg.setRecipient(Message.RecipientType.TO, new InternetAddress("myname at mycompany.com"));
  | msg.setSentDate(new Date());
  | msg.setSubject("Teste");
  | msg.setText("Email test!");
  | Transport.send(msg);

So, I suppose that my mailserver accepts the address that I using, doesn't it? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159988#4159988

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159988

More information about the jboss-user mailing list