SMTP with Creatio


I am trying to setup SMTP with Creatio. For example, I am trying to put this code in a script task.

var smtpClient = new SmtpClient("")
    Port = 587,
    Credentials = new NetworkCredential("email", "password"),
    EnableSsl = true,

Although when I do this I receive,

System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn more at

Can anyone guide me in the correct direction? This is via gmail SMTP server.


We are trying to do this because email accounts get disconnected from Creatio from time to time.



Like 0



For a gmail account, I believe you'd need to do one of the following options to use SMTP:


Option 1:

  1. Turn off 2FA for the gmail account
  2. Enable less secure apps -

Option 2: (which is a better option IMO)

  1. Enable 2FA for the gmail account
  2. Create an app-specific password for the account, then use that for the account in Creatio instead. To create an app-specific, visit: and choose Authorizing applications & sites to generate the password (but you'll have to have 2FA enabled to do this)


Show all comments