mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
class GmailTransportConfig
|
||||||
{
|
{
|
||||||
|
|
||||||
public function __invoke(User $user)
|
public function __invoke()
|
||||||
{
|
{
|
||||||
|
|
||||||
// $transport = (new Swift_SmtpTransport('smtp.googlemail.com', 465, 'ssl'))
|
// $transport = (new Swift_SmtpTransport('smtp.googlemail.com', 465, 'ssl'))
|
||||||
@ -31,13 +31,13 @@ class GmailTransportConfig
|
|||||||
//
|
//
|
||||||
// $transport = \Swift_SmtpTransport::newInstance($host, $port);
|
// $transport = \Swift_SmtpTransport::newInstance($host, $port);
|
||||||
// set encryption
|
// set encryption
|
||||||
if (isset($encryption)) $transport->setEncryption($encryption);
|
// if (isset($encryption)) $transport->setEncryption($encryption);
|
||||||
// set username and password
|
// // set username and password
|
||||||
if (isset($username))
|
// if (isset($username))
|
||||||
{
|
// {
|
||||||
$transport->setUsername($username);
|
// $transport->setUsername($username);
|
||||||
$transport->setPassword($password);
|
// $transport->setPassword($password);
|
||||||
}
|
// }
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user