Hi @37349445 ,
Could you post us the details of your error message?
The reason of your problems I think there are these:
- Maybe the name or password isn't right. You can check whether the user name and password are correct. When sending email via code, you need to pass the full email address as the username.
- Maybe Gmail has blocked your application, you need to modify the settings of the less secure application and open the access to the less secure application.
Best regards,
Lan Huang
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.