My first git project: PHP gets gmail mail messages (including subject, body, pictures, attachments, etc.) via the SMTP protocol
Main implementations:
1. Edit the Inbox and Outbox of the mailbox via your Gmail email address and password;
2. The message body will embed up to 10 emails between the recipient and the sender;
3. A picture embedded in the body of the message, downloaded from the remote server to the local server and replaced with a link to the image's saved directory (accessible) on the local server;
4. Download the attachment from the remote server to the local server for download.
GitHub Address: Https://github.com/xuzc/fetch-gmail-email
The above describes my first git project: PHP through the SMTP protocol to get Gmail message information (including subject, text, pictures, attachments, etc.), including the content of the area, I hope that the PHP tutorial interested in a friend helpful.