IDEMPIERE-5289 Apply Packin from Folder is stopping when sending email throws error (FHCA-3601) (#1333)
This commit is contained in:
parent
d67ca5b69b
commit
05e7c5eac7
|
@ -160,7 +160,14 @@ public class PackInNotifier {
|
||||||
from = sysclient.getRequestEMail();
|
from = sysclient.getRequestEMail();
|
||||||
}
|
}
|
||||||
|
|
||||||
EMail email = client.createEMailFrom(from, to, subject.toString(), message.toString(), false);
|
EMail email;
|
||||||
|
try {
|
||||||
|
email = client.createEMailFrom(from, to, subject.toString(), message.toString(), false);
|
||||||
|
} catch (Exception e) {
|
||||||
|
// ignore exceptions when the email cannot be created, just log it
|
||||||
|
e.printStackTrace();
|
||||||
|
email = null;
|
||||||
|
}
|
||||||
if (email != null)
|
if (email != null)
|
||||||
{
|
{
|
||||||
if (!packIn.isSuccess()) {
|
if (!packIn.isSuccess()) {
|
||||||
|
|
Loading…
Reference in New Issue