As my topic revealed, I have been building a email program my problem is when I set my company address as a sender in properties,
I had been told : Sender address rejected: not logged in
But given that I put my password on properties.yaml
here is my properties
You cannot use your gmail password here. You have to generate a new password for this application . Below are the steps to generate the password.
- Go to manage gmail account
- click on security
- first you have to complete 2 step verification.
- after completing 2 step verification click on the App password.
- in select app section select other and type your application or project name.
- click on generate. this will give you a random string.
- copy that password and copy in password in properties file.
For outlook account use following steps
To create a new app password for an app or device, take the following steps. You can repeat these steps to create an app password for as many apps or devices as you need.
Go to the Security basics page and sign in to your Microsoft account.
Select More security options.
Under App passwords, select Create a new app password. A new app password is generated and appears on your screen.
Enter this app password where you would enter your normal Microsoft account password in the application.