click "Certificates and secrets"
-> "client secrets"
and add a new client secret.
Then
Click "Add A permission".
Then Select "Microsoft Graph", then select "Application Permissions" scroll down to Mail, and select Mail.Send
Click on Grant Admin Consent if necessary
Then click Authentication on the left hand side.