Using PHP IMAP function i can read email, but i need to run autoamtically or manually to download messages , how can i download all email messages with or without attachments and saved it to local drive or server in mailid folder name for major networks (gmail,yahoo,hotmail,AOL).
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Please try this code to fetch the email and store attachments in a directory.
You can also delete the mail using imap_delete and imap_expunge, after you have fetched it from the mailbox.
In the below code set your website name, mailbox username, password and path for storing attachments.