cuba.email

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

Hi,
Which version of the platform do you use?
I have checked Emailer in the platform version 6.5.3 and it works perfectly. Assumably the problem is in the connection settings, please verify them. Try the same settings in another email client program.
Are you sure cuba.email.smtpAuthRequired should be false?
Also, try to increase cuba.email.smtpConnectionTimeoutSec. Maybe the SMTP-service is slow.

Dear Rostislav, thanks I am using 6.4.0 and setup now cuba.email.smtpAuthRequired = true and continue with errors.
I need user 6.5.3 ?

Hi, i setup 6.5.5 and the same error, i am copy my setup:

cuba.email.fromAddress = jgomez@.net
cuba.email.smtpHost = mail.
.net
cuba.email.smtpPort = 25
cuba.email.smtpAuthRequired = true
cuba.email.smtpSslEnabled = false
cuba.email.smtpStarttlsEnabled = false
cuba.email.smtpUser = *******
cuba.email.smtpPassword = ********
cuba.email.delayCallCount = 2
cuba.email.messageQueueCapacity = 100
cuba.email.defaultSendingAttemptsCount = 10

Hi.
Try to increase cuba.email.smtpConnectionTimeoutSec. Also, try another SMTP service. We tested the platform email sender with several free email boxes and it worked well.

Dear Rostislav i resolve my bug, I do not “activate” under Administration > Scheduled Tasks and works fine !!!
regards by your help.