Laravel-SwiftMailer | SwiftMailer integration fix for Queued deamon workers

 by   YOzaz PHP Version: v4.0.3 License: MIT

kandi X-RAY | Laravel-SwiftMailer Summary

kandi X-RAY | Laravel-SwiftMailer Summary

Laravel-SwiftMailer is a PHP library typically used in Telecommunications, Media, Telecom applications. Laravel-SwiftMailer has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This package works in two possible error-safe modes: sends STOP command after every email is sent, and/or sends RESET/STOP+START commands before every email is sent. As a default, both modes are activated (so called "aggressive" mode). Such approach ensures SMTP connection is closed to avoid timeouts and broken pipes, or maintains it active for whole application living cycle. This is extremely important for long-living applications. E.g. when emails are sent through Beanstalkd + Supervisor + Laravel Queue Daemon Worker architecture, Laravel application never quits - therefore SMTP connection is kept active and timeouts after some time. Stopping, resetting and/or restarting SMTP connection automaticaly solves this problem in general. N.B. While auto-reset feature is great, sometimes it's not a preferred behaviour. Be sure to check your SMTP server configuration before using this package.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Laravel-SwiftMailer has a low active ecosystem.
              It has 23 star(s) with 3 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 6 have been closed. On average issues are closed in 128 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Laravel-SwiftMailer is v4.0.3

            kandi-Quality Quality

              Laravel-SwiftMailer has no bugs reported.

            kandi-Security Security

              Laravel-SwiftMailer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Laravel-SwiftMailer is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Laravel-SwiftMailer releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Laravel-SwiftMailer and discovered the below as its top functions. This is intended to give you an instant insight into Laravel-SwiftMailer implemented functionality, and help decide if they suit your requirements.
            • Stop Swift Transport
            • Reset Swift Transport .
            • Register the mailer .
            • Get Swift Mailer Transport
            • Get the transport transport object .
            • Boot the package .
            • Get the service provider .
            • Get the facade accessor .
            Get all kandi verified functions for this library.

            Laravel-SwiftMailer Key Features

            No Key Features are available at this moment for Laravel-SwiftMailer.

            Laravel-SwiftMailer Examples and Code Snippets

            Laravel and Swift Mailer integrator,Usage,Auto-reset
            PHPdot img1Lines of Code : 16dot img1License : Permissive (MIT)
            copy iconCopy
            // disable auto reset
            Mailer::disableAutoReset();
            // enable it back
            Mailer::enableAutoReset();
            // Set my status
            Mailer::setAutoReset(true);
            // check if auto-reset is enabled
            if ( Mailer::autoResetEnabled() ) { ...
            
            // send only STOP after every email  
            Laravel and Swift Mailer integrator,Installation
            PHPdot img2Lines of Code : 6dot img2License : Permissive (MIT)
            copy iconCopy
            "require": {
            	"yozaz/laravel-swiftmailer": "~4.0"
            }
            
            composer update
            
            'YOzaz\LaravelSwiftmailer\ServiceProvider',
            
            'Mail' => 'YOzaz\LaravelSwiftmailer\Facade',
              
            Laravel and Swift Mailer integrator,Usage,Initialization
            PHPdot img3Lines of Code : 5dot img3License : Permissive (MIT)
            copy iconCopy
            var $mailer = App::make('laravel-swiftmailer.mailer');
            
            var $mailer = new \YOzaz\LaravelSwiftmailer\Mailer();
            
            var $my_custom_mailer = App::make('mailer');
            // pass custom mailer and disable auto-reset
            var $mailer = new \YOzaz\LaravelSwiftmailer\Maile  

            Community Discussions

            Trending Discussions on Laravel-SwiftMailer

            QUESTION

            Laravel 5.5 Expected response code 250 but got code "530"
            Asked 2019-Sep-15 at 15:28

            I know it is a duplicate issue in StackOverFlow (Laravel SwiftMailer : Expected response code 250 but got code "530", with message "530-5.5.1 Authentication Required) however, I'm done all the remedies discussed there but still no luck. I'm using mailtrap.io using my GMail account. Here is the .env file and mail.php (under config):

            .env ...

            ANSWER

            Answered 2018-May-30 at 08:14

            I' may suggest you use this as well, it worked for me,

            Please Note if you're using Gmail: create a gmail app password, but be sure to your 2 Step verification set up, from sign in and securiity, the following link: https://myaccount.google.com/apppasswords to setup app password, use that and follow procedure 2 after this return to set up gmail with smtp.

            please note: code down below are for mail.php file

            (do not forget to use: php artisan config:cache) after changes to .env file as well

            Source https://stackoverflow.com/questions/50582000

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Laravel-SwiftMailer

            Begin by installing this package through Composer. Edit your project's composer.json file to require yozaz/laravel-swiftmailer.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries