When using the macro sc_mail_send with the following parameters:
After execution, the following error appears:
Fatalerror:Uncaught Swift_TransportException: Expected response code 250 but gotcode "535", with message "535-5.7.8 Username andPassword not accepted. Learn more at 535 5.7.8https://support.google.com/mail/?p=BadCredentialsq13-v6sm21599256qkl.97 - gsmtp " in/opt/NetMake/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php:383Stack trace: #0/opt/NetMake/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(281):Swift_Transport_AbstractSmtpTransport->_assertResponseCode('535-5.7.8Usern...', Array) #1/opt/NetMake/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/EsmtpTransport.php(269):Swift_Transport_AbstractSmtpTransport->executeCommand('RSET\r\n',Array, Array) #2/opt/NetMake/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/Esmtp/Auth/XOAuth2Authenticator.php(55):Swift_Transport_EsmtpTransport->executeCommand('RSET\r\n', Array)#3/opt/NetMake/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/Esin/opt/NetMake/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.phponline 383
This error occurs because the permissions for accessing less secure applications is not active, this option must be activated before the message can be sent.
To allow access, just activate and enter this link: