Download the PHP package ylly/mailboxlayerbundle without Composer
On this page you can find all versions of the php package ylly/mailboxlayerbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ylly/mailboxlayerbundle
More information about ylly/mailboxlayerbundle
Files in ylly/mailboxlayerbundle
Package mailboxlayerbundle
Short Description Symfony bundle for ylly/mailboxlayer's use
License MIT
Informations about the package mailboxlayerbundle
Installation
Step 1 : Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2 : Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Step 3 : Generate access_key
You need to generate a key on mailboxLayer and add it to the config.yml
See https://mailboxlayer.com/product
Then, add it to the app/config/config.yml
file of your project :
For a maximal configuration (and in cases you are using your own proxy or the monolog bundle), there is some config parameters you can modify.
By default, the level of the message displayed is 200 (a.k.a. INFO) and the channel is app. For more information, see : https://symfony.com/doc/current/logging.html
Step 4 : Use
To allow email verifications, the ylly/mailboxLayerBundle use a very simple assertion (or constraint) who can be applied to any email's attributes.
Step 5 : Optionals
There is a few options you can tweak to perform your email verifications :
-
CheckMx verify if there is MX-records for the email address.
-
CheckSmtp verify if the smtp request was handled by the server.
-
CatchAll checks if the requested email address is found to be part of a catch-all mailbox. Warning ! the catchAll option can only be used by mailboxlayer's professional accounts. Default false.
-
RefuseDisposable check that the email address is not precarious. set true if you don't want disposable address. Default false.
-
RefuseUnderScore check The quality score of the email address. Allow float between 0 and 1 if you don't want the email's scores to be lower of your chosen limit. Default 0.
- SkipIfServerErrors. When true, this option permits email to pass the verifications when API mailboxLayer is down or when there's a problem of user's right. Default true.
Step 6 : Logger
If using Symfony/Monolog-Bundle, the ylly/mailboxlayerbundle provides a way to log email in case the verification's is accepted despite server errors (see Step 5: Optionals : SkipIfServerErrors).
If you are using another logger interface, you can implement your own Logger class & add the Logger service using the tag 'ylly.logger' in the services_logger.yml file.
For your information
For more information on the Ylly/mailboxMailer library which is implemented by ylly/mailboxlayerbundle :
All versions of mailboxlayerbundle with dependencies
ylly/mailboxlayer Version ^1.0
symfony/framework-bundle Version ~2.3||~3.0||~4.0
symfony/validator Version ~2.3||~3.0||~4.0