Dear team I use the documentation for send email and test the “Emailer Test” and get the next error
app.properties
Note: xxxx is used here because I change my data because here is public forum
cuba.email.fromAddress = DoNotReply@precomer.com
cuba.email.smtpHost = mail.xxx.com
cuba.email.smtpPort = 25
cuba.email.smtpAuthRequired = false
cuba.email.smtpSslEnabled = false
cuba.email.smtpStarttlsEnabled = false
cuba.email.smtpUser = user@xxxx.com
cuba.email.smtpPassword = xxxxxx
The operation invode by java.lang.String.sendTestEmail()
Operation invoked successfully with result:
ezmovil.net@gmail.com : Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mail.ihostasp.net, 25; timeout 20000;
nested exception is:
java.net.SocketTimeoutException: connect timed out. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mail.ihostasp.net, 25; timeout 20000;
nested exception is:
java.net.SocketTimeoutException: connect timed out
at com.haulmont.cuba.core.app.Emailer.persistAndSendEmail(Emailer.java:216)
at com.haulmont.cuba.core.app.Emailer.sendEmail(Emailer.java:105)
at com.haulmont.cuba.core.app.Emailer.sendEmail(Emailer.java:99)
at com.haulmont.cuba.core.jmx.Emailer.sendTestEmail(Emailer.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
…
Sending email:
…
// This method is invoked after the screen commit
@Override
protected boolean postCommit(boolean committed, boolean close) {
if (committed && justCreated) {
// If a new entity was saved to the database, ask a user about sending an email
showOptionDialog(
"Email",
"Send the news item by email?",
MessageType.CONFIRMATION,
new Action[] {
new DialogAction(DialogAction.Type.YES) {
@Override
public void actionPerform(Component component) {
sendByEmail();
}
},
new DialogAction(DialogAction.Type.NO)
}
);
}
return super.postCommit(committed, close);
}
…
cuba.email.delayCallCount = 2
cuba.email.messageQueueCapacity = 100
cuba.email.defaultSendingAttemptsCount = 10