Skip to main content

Setting Up Google SMTP in the App Returns an Error

SMTP Google Error - ConnectIOException: I/O error occurred during RMI call

Written by Petr Pech

The most common error when configuring email sending via Google SMTP is caused by Google's security settings.

Full error message from ABRA Flexi:

java.rmi.ConnectIOException: I/O error ocurred during RMI call; nested exception is: java.rmi.RemoteException: Exception thrown by remote method 'sendMail'; nested exception is: cz.winstrom.service.mail.MailException: javax.mail.AuthenticationFailedException

Resolution steps:

To use Google's SMTP server, you need to change the settings in the Gmail client application for the relevant email account. Navigate in the menu to GSuite -> Manage Google Account -> Security -> Less secure app access

Note: This setting cannot be enabled while two-factor authentication is active at the same time.


Read more information about SMTP configuration in Flexi.

Did this answer your question?