Error with SMTP Email Sending using Access Token – ‘Grant Type’ Issue
I’m working on a project where a user registers and grants full access to the site. After obtaining the access token, I’m trying to send an email using SMTP, but I keep encountering an error related to “grant type.” I’m unable to send the email, and the error message I’m seeing is something like:
Error: Invalid grant type
or Error: Grant type not allowed for this request