Problems sending emails - sc_mail_send

Problems sending emails - sc_mail_send

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:

https://myaccount.google.com/lesssecureapps

    • Related Articles

    • Error sending mail: stream_socket_client()

      When you want to send an email and show this error:   stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed  ...
    • Using sc_ajax_refresh()

      -Create a grid -At the Ajax Event -New Ajax Event: -Select the Event onClick and the desired field, and create: -Add the following macro: sc_ajax_refresh (); -When clicking on the record in that field, the page would be reloading Corresponding ...
    • Macro sc_date

        Scriptcase provides a very useful macro for manipulating dates, which is a very laborious process, however with the use of the sc_date macro (Increments and Decrement Dates), it is much simpler, example:   sc_date (Date, format, operator, D, M, A) ...
    • Email Export in Charts

      In Chart applications you can configure the export by email feature. This feature is used to export the Charts and send the export directly by e-mail to the configured recipients. The e-mail export settings can be viewed in the Email Export menu. ...
    • Macro sc_block_display

      In this example, we will see how to use the sc_block_display macro in an Ajax event using a Radio button on a Form, this macro is intended to hide or show a block. The steps in this example: Configuring Radio type field Configuring and creating ...