SOLVED:
I must to use php-mail to send the emails:
Docu:
Use php-mail for sending mail
You can use the php-mail function to send mails. This is needed for some webhosters (1&1 (1und1)):
âapp.mail.transportâ => âphp-mailâ
In my case for Zoho Mail.
Thank you all
Could anyone explain why is this needed and what is used instead it by default? Sorry but I am actually learning thanks
Amazing App by the wayâŠ
Thank you for answering @ChristophWurst. Iâve tried what you say but unfortunately I am having the same issue
This is what the log says:
{
âreqIdâ:âqiuH861Mf0LTkRQ9J8t7â,
âlevelâ:1,
âtimeâ:âDecember 16, 2020 19:13:09â,
âremoteAddrâ:âXX.XXX.XX.XXXâ,
âuserâ:âuserâ,
âappâ:âmailâ,
âmethodâ:âPOSTâ,
âurlâ:â/valpol/index.php/apps/mail/api/accountsâ,
âmessageâ:âSetting up manually configured accountâ,
âuserAgentâ:âMozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:84.0) Gecko/20100101 Firefox/84.0â,
âversionâ:â20.0.3.2â
}
{
âreqIdâ:âqiuH861Mf0LTkRQ9J8t7â,
âlevelâ:0,
âtimeâ:âDecember 16, 2020 19:13:09â,
âremoteAddrâ:âXX.XXX.XX.XXXâ,
âuserâ:âuserâ,
âappâ:âmailâ,
âmethodâ:âPOSTâ,
âurlâ:â/valpol/index.php/apps/mail/api/accountsâ,
âmessageâ:âConnecting to account myaccount@zohomail.euâ,
âuserAgentâ:âMozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:84.0) Gecko/20100101 Firefox/84.0â,
âversionâ:â20.0.3.2â
}
{
âreqIdâ:âqiuH861Mf0LTkRQ9J8t7â,
âlevelâ:0,
âtimeâ:âDecember 16, 2020 19:13:11â,
âremoteAddrâ:âXX.XXX.XX.XXXâ,
âuserâ:âuserâ,
âappâ:âPHPâ,
âmeth odâ:âPOSTâ,
âurlâ:â/valpol/index.php/apps/mail/api/accountsâ,
âmessageâ:{
âExceptionâ:âErrorâ,
âMessageâ:âstream_socket_client(): unable to connect to ssl://smtp.zoho.eu:465 (Connection timed out) at /home/user/public_html/valpol/apps/mail/vendor/pear-pear.horde.org/Horde_Soc ket_Client/Horde/Socket/Client.php#293â,
âCodeâ:0,
âTraceâ:[{
âfunctionâ:âonAllâ,
âclassâ:âOC\Log\ErrorHandlerâ,
âtypeâ:â::â,
âargsâ:[2,âstream_socket_client(): unable to connect to ssl://smtp.zoho.eu:465 (Connection timed out)â,
â/home/user/public_html/valpol/apps/mail/vendor/pear-pear.horde.org/Horde_Socket_Client/Horde/Socket/Client.phpâ,
293,
{
âhostâ:âsmtp.zoho.euâ,
âportâ:465,
âtimeoutâ:2,
âsecureâ:âsslâ,
âcontextâ:{âsslâ{âverify_peerâ:true, âverify_peer_nameâ:true}},
âretriesâ:0,
âconnâ:âssl://smtp.zoho.eu:465â,
âerror_numberâ:0,
âerror_stringâ:ââ
}]},
{âfileâ:â/home/user/public_html/valpol/apps/mail/vendor/pear-pear.horde.org/Horde_Socket_Client/Horde/Socket/Client.phpâ,
âlineâ:293,
âfunctionâ:âstream_socket_clientâ,
âargsâ:[âssl://smtp.zoho.eu:465â,0,ââ,2,4,null]},
{
âfileâ:â/home/user/public_html/valpol/apps/mail/vendor/pear-pear.horde.org/Horde_Socket_Client/Horde/Socket/Client.phpâ,
âlineâ:106,
âfunctionâ:â_connectâ,
âclassâ:âHorde\Socket\Clientâ,
âtypeâ:â->â,
âargsâ:[âsmtp.zoho.euâ,465,2,âsslâ,{âsslâ:{âverify_peerâ:true,âverify_peer_nameâ:true}}]},{âfileâ:â/home/user/public_html/valpol/apps/mail/vendor/pear-pear.horde.org/Horde_Smtp/Horde/Smtp.phpâ,
âlineâ:379,
âfunctionâ:â__constructâ,
âclassâ:âHorde\Socket\Clientâ,
âtypeâ:â->â,
âargsâ:[âsmtp.zoho.euâ,465,2,âsslâ,{âsslâ:{âverify_peerâ:true,âverify_peer_nameâ:true}},{âdebugâ:{âactiveâ:true,âclassâ:âHorde_Smtp_Debugâ}}]},
{âfileâ:â/home/user/public_html/valpol/apps/mail/vendor/pear-pear.horde.org/Horde_Mail/Horde/Mail/Transport/Smtphorde.phpâ,
âlineâ:160,
âfunctionâ:âloginâ,
âclassâ:âHorde_Smtpâ,
âtypeâ:â->â,
âargsâ:[â*** sensitive parameters replaced ***â]},
{
âfileâ:â/home/user/public_html/valpol/apps/mail/lib/Account.phpâ,
âlineâ:233,
âfunctionâ:âgetSMTPObjectâ,
âclassâ:âHorde_Mail_Transport_Smtphordeâ,
âtypeâ:â->â,
âargsâ:
},
{âfileâ:â/home/user/public_html/valpol/apps/mail/lib/Service/SetupService.phpâ,
âlineâ:128,
âfunctionâ:âtestConnectivityâ,
âclassâ:âOCA\Mail\Accountâ,
âtypeâ:â->â,
âargsâ:[{
âsend8bitâ:false,
âsepâ:â\r\nâ,
âclassâ:âHorde_Mail_Transport_Smtphordeâ}]},
{âfileâ:â/home/user/public_html/valpol/apps/mail/lib/Controller/AccountsController.phpâ,
âlineâ:328,
âfunctionâ:âcreateNewAccountâ,
âclassâ:âOCA\Mail\Service\SetupServiceâ,
âtypeâ:â->â,
âargsâ:[
âmy_userâ,
âmyaccount@zohomail.euâ,
âimap.zoho.euâ,
993,
âsslâ,
âmyaccount@zohomail.euâ,
âmy_password_hereâ,
âsmtp.zoho.euâ,
465,
âsslâ,
âmyaccount@zohomail.euâ,
âmy_password_hereâ,
âuserâ
]},
{
âfileâ:â/home/user/public_html/valpol/lib/private/AppFramework/Http/Dispatcher.phpâ,
âlineâ:169,
âfunctionâ:âcreateâ,
âclassâ:âOCA\Mail\Controller\AccountsControllerâ,
âtypeâ:â->â,
âargsâ:[
âmy_userâ,âmyaccount@zohomail.euâ,
null,
âimap.zoho.euâ,
993,
âsslâ,
âmyaccount@zohomail.euâ,
âmy_passwordâ,
âsmtp.zoho.euâ,
465,
âsslâ,
âmyaccount@zohomail.euâ,
âmy_passwordâ,
false
]},
{
âfileâ:â/home/user/public_html/valpol/lib/private/AppFramework/Http/Dispatcher.phpâ,
âlineâ:100,
âfunctionâ:âexecuteControllerâ,
âclassâ:âOC\AppFramework\Http\Dispatcherâ,
âtypeâ:â->â,
âargsâ:[{
âclassâ:âOCA\Mail\Controller\AccountsControllerâ},
âcreateâ
]},
{
âfileâ:â/home/user/public_html/valpol/lib/private/AppFramework/App.phpâ,
âlineâ:152,
âfunctionâ:âdispatchâ,
âclassâ:âOC\AppFramework\Http\Dispatcherâ,
âtypeâ:â->â,
âargsâ:[{âclassâ:âOCA\Mail\Controller\AccountsControllerâ},
âcreateâ]},
{
âfileâ:â/home/user/public_html/valpol/lib/private/Route/Router.phpâ,
âlineâ:308,
âfunctionâ:âmainâ,
âclassâ:âOC\AppFramework\Appâ,
âtypeâ:â::â,
âargsâ:[
âOCA\Mail\Controller\AccountsControllerâ,
âcreateâ,
{
âclassâ:âOC\AppFramework\DependencyInjection\DIContainerâ
},
{
âactionâ:null,
â_routeâ:âmail.accounts.createâ
}
]
},
{
âfileâ:â/home/user/public_html/valpol/lib/base.phpâ,
âlineâ:1008,
âfunctionâ:âmatchâ,
âclassâ:âOC\Route\Routerâ,
âtypeâ:â->â,
âargsâ:[â/apps/mail/api/accountsâ]
},
{
âfileâ:â/home/user/public_html/valpol/index.phpâ,
âlineâ:37,
âfunctionâ:âhandleRequestâ,
âclassâ:âOCâ,
âtypeâ:â::â,
âargsâ:
}
],
âFileâ:â/home/user/public_html/valpol/lib/private/Log/ErrorHandler.phpâ,
âLineâ:98,
âCustomMessageâ:âââ
},
âuserAgentâ:âMozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:84.0) Gecko/20100101 Firefox/84.0â,
âversionâ:â20.0.3.2â
}
{
âreqIdâ:âqiuH861Mf0LTkRQ9J8t7â,
âlevelâ:3,
âtimeâ:âDecember 16, 2020 19:13:11â,
âremoteAddrâ:â79.147.123.81â,
âuserâ:âuserâ,
âappâ:âmailâ,
âmethodâ:âPOSTâ,
âurlâ:â/valpol/index.php/apps/mail/api/accountsâ,
âmessageâ:âCreating account failed: Error connecting to SMTP server.â,
âuserAgentâ:âMozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:84.0) Gecko/20100101 Firefox/84.0â,
âversionâ:â20.0.3.2â
}
EDITED:
âapp.mail.verify-tls-peerâ => false
I have tried as well disabling TLS verification for IMAP/SMTP as the docu says, but notâŠ
Could be something wrong configured in my server? Because I couldnât connect the Gmail account neither