Download the PHP package satis/incomingmail without Composer
On this page you can find all versions of the php package satis/incomingmail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package incomingmail
Satis Incoming Mail
Installation
Publish the package
Once published, you will have access to a controller IncomingMail/IncomingMailController.php which allows you to customize the mail registration function. Also a config is generated in config/incoming_mail.php.
Project configuration
Access the configuration in config/incoming_mail.php to make your changes.
For app_login_params you can for example use :
if these are the fields you need for the connection to your project
Subscription to the incoming mails service
After the configuration, perform the subscription to the incoming mails service with the following command:
From this moment your project receives unread mails every 1 minute and records them in your database
GeneralMail or ClaimMail
You have the possibility to save the mails in a classic table (GeneralMail) or to do it as a claim (ClaimMail)
GeneralMail
By default your project is configured to save mail in a classic table that you have defined in the config/incoming_mail.php file. You can override this function by adding other attributes
or change the logic of the code :
ClaimMail
To use the register as claim, please comment out the Use GeneralMail line and uncomment the Use ClaimMail line. The registration of mail in the form of claim is done the table definite in the config as the GeneralMail with the difference that in this case you must have a table identities that will contain the information of a claimer (You must have the attributes related to the following config: 'first_name' , 'last_name' , 'email' ) and a table files for the registration of attachments with new fields (title, url, attachmentable_id, attachmentable_type )
or change the logic of the code
API URL
Add this link in your api route
API subscribe link for incoming mail service
Put env api link subscribe mail with this variable