Can't setup custom email using sendgrid instead of inbuilt phpmailer?

Hi, can you help me?
What was the correct configuration for sendgrid?
i have this but it does not work
smtp = On
smtp_server = smtp.sendgrid.net
smtp_port = 587
smtp_auth = tls
smtp_username = apikey (do not move)
smtp_password = apikey (possible password removed)
allow_envelope_sender = On
default_envelope_sender = my account
force_default_envelope_sender = On
force_dmarc_compliant_from = On
dmarc_compliant_from_displayname = ‘%n’
time_between_emails = 3600
max_recipients = 10
require_validation = Off
validation_timeout = 14