Skip to content

f-i-t-s-u-m/email-app

Repository files navigation

Run

Composer install

Add This Lines To Your .env File

For Gmail api First create a project on Google Developer Console. Then add values to your .env

GOOGLE_PROJECT_ID=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=
GOOGLE_ALLOW_MULTIPLE_CREDENTIALS=
GOOGLE_ALLOW_JSON_ENCRYPT=

For Outlook

OAUTH_APP_ID=
OAUTH_APP_SECRET=
OAUTH_REDIRECT_URI=
OAUTH_SCOPES='openid profile offline_access user.read Mail.Read Mail.ReadBasic Mail.ReadWrite'
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token
GRANT_TYPE=refresh_token

Screenshots for outlook

step 1 step 2 step 3 step 4 step 5 step 6 step 7 step 8 step 9 step 10 done

Routes

  1. To verify your email and get access token
api/verify-email 
  1. To get your unread messages
api/emails

Vendors emails

All vendors emails list can be access from inside .env file. You can add multiple emails for one vendor and multiple vendors.

List of Vendors and emails

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages