Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #39649 All Revisions ] Back to Issue ]
Summary 0039649: Cannot send mail using EmailEventManager
Revision 2018-11-20 10:40 by caristu
Steps To Reproduce Create an event to send a mail following: http://wiki.openbravo.com/wiki/How_to_send_emails_on_events [^]
- Create an email event listener extending EmailEventContentGenerator class.
- Run EmailEventManager.sendEmail(String event, final String recipient, Object data)
- Check email is not sent

Revision 2018-11-20 10:39 by caristu
Steps To Reproduce Create an event to send a mail following: http://wiki.openbravo.com/wiki/How_to_send_emails_on_events [^]
- Create an email event listener extending EmailEventContentGenerator class.
- Run EmailEventManager.sendEmail(String event, final String recipient, Object data)

Check email is not sent and a NPE is raised in EmailManager line 225 when executing: transport.sendMessage(message, message.getAllRecipients()); See stack trace:

Caused by: java.lang.NullPointerException
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1265)
    at org.openbravo.erpCommon.utility.poc.EmailManager.sendEmail(EmailManager.java:225)
    at org.openbravo.erpCommon.utility.poc.EmailManager.sendEmail(EmailManager.java:69)
    at org.openbravo.email.EmailEventManager.sendEmail(EmailEventManager.java:113)
    ... 51 more
Revision 2018-11-20 09:44 by caristu
Steps To Reproduce Create an event to send a mail following: http://wiki.openbravo.com/wiki/How_to_send_emails_on_events [^]
- Create an email event listener extending EmailEventContentGenerator class.
- Run EmailEventManager.sendEmail(String event, final String recipient, Object data)

Check email is not sent and a NPE is raised in EmailManager line 224 when executing: transport.sendMessage(message, message.getAllRecipients());


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker