Connecting to Gmail IMAP PHP “Couldn't open stream”

前端 未结 7 1792
别跟我提以往
别跟我提以往 2021-01-11 12:12

There are lots of people having similar issues but no one is answering their questions. I have IMAP enabled in PHP, Using all the correct information. I don\'t see where I\'

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-11 12:53

    You can setup 2 step authentication and then assign an APP password to use in your requests (just replace your password with the one provided for the app, your normal password doesn't change.).

    This will help your script run from any host without google blocking it (due to a change in login location).

提交回复
热议问题