[JBoss jBPM] - Re: Mail Node
by Fornachari
Kukeltje,
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(a)workflowmachine.com"));
| msg.setRecipient(Message.RecipientType.TO, new InternetAddress("myname(a)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
17 years, 10 months
[Beginners Corner] - JBoss 4.2.2.GA with PHP servlet - POST params not found wit
by gkincade
We're running JBoss 4.2.2.GA on Windows XP with the PHP 5 servlet set. PHP 5.1.6 is installed for compatibility with the servlet.
We have two .php pages, one calling the next via a complex Javascript script. The second page is called with the POST method and parameters are passed so that when it runs, it accesses the parameters using $_POST and passes them into a dynamic MySQL SELECT which returns the data.
This works under Apache reasonably well (i.e. the $_POST's work).
But under JBoss, the parameters are being set up and we can see them in the JBoss console but the $_POST's all fail with messages like:
PHP Notice: Undefined index: page in C:\jboss-4.2.2.GA\server\default\deploy\post2.php on line 26
I've seen lots of posts elsewhere on other PHP forums about problems with $_POST and array corruption.
Is this likley to be the problem and if so how can we get round it (I note the Linux PHP servlets are more up to date than the Windows ones on the download section).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159977#4159977
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159977
17 years, 10 months