PHP Mailer taking over 30 seconds to send a welcome email
So I am using the PHPMailer library in PHP to send a welcome email when ever my users registered, and it takes so long to do this. It takes around 30 - 50 seconds to actually load the home page, after clicking submit on the registration. It basically puts the page in a reloading state for over 30 seconds. The code I use is below... if ($config['user']['welcome_email_enabled']) $autoLoader->getLibrary('mail')->sendWelcomeEmail($email, $username); And my mail library is here. <?php /** * MangoCMS, content management system. * * @info Handles the mail functions. * @author Liam Digital