Can't work with Sendgrid

I am trying to link with Sendgrid by referring to the page below, but the email is not sent.
What should I do?

# SMTP server to send emails
smtp:
  # smtp or sendmail
  transport: smtp
  # Path to sendmail command. Required if you use sendmail transport
  sendmail: null
  hostname: 'smtp.sendgrid.net'
  port: 587 # If you use StartTLS: 587
  username: 'apikey'
  password: 'SG~'
  tls: true # If you use StartTLS: false
  disable_starttls: false
  ca_file: null # Used for self signed certificates
  from_address: 'admin@example.com'

email:
  body:
    signature: 'PeerTube'
  subject:
    prefix: '[PeerTube]'

I was able to solve it by changing tls: true to tls: false.

1 « J'aime »