mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for invokable class (#3122)
* Reset DB connection after a DB scan in the same request * Testing Gmail Oauth Email * fixes for invokable class
This commit is contained in:
parent
bc85bcd747
commit
7d073a2313
@ -21,7 +21,7 @@ use Illuminate\Support\Facades\Mail;
|
||||
class GmailTransportConfig
|
||||
{
|
||||
|
||||
public function __invoke(User $user)
|
||||
public function __invoke()
|
||||
{
|
||||
|
||||
// $transport = (new Swift_SmtpTransport('smtp.googlemail.com', 465, 'ssl'))
|
||||
@ -31,13 +31,13 @@ class GmailTransportConfig
|
||||
//
|
||||
// $transport = \Swift_SmtpTransport::newInstance($host, $port);
|
||||
// set encryption
|
||||
if (isset($encryption)) $transport->setEncryption($encryption);
|
||||
// set username and password
|
||||
if (isset($username))
|
||||
{
|
||||
$transport->setUsername($username);
|
||||
$transport->setPassword($password);
|
||||
}
|
||||
// if (isset($encryption)) $transport->setEncryption($encryption);
|
||||
// // set username and password
|
||||
// if (isset($username))
|
||||
// {
|
||||
// $transport->setUsername($username);
|
||||
// $transport->setPassword($password);
|
||||
// }
|
||||
|
||||
//
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user