Skip to content

Commit

Permalink
Merge pull request #1643 from jim-parry/branchoff/email
Browse files Browse the repository at this point in the history
Remove Email module
  • Loading branch information
jim-parry authored Jan 1, 2019
2 parents 81d3715 + ba4cdf5 commit 4340e66
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 3,207 deletions.
161 changes: 0 additions & 161 deletions app/Config/Email.php

This file was deleted.

28 changes: 0 additions & 28 deletions system/Config/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,34 +150,6 @@ public static function curlrequest(array $options = [], $response = null, \Confi

//--------------------------------------------------------------------

/**
* The Email class allows you to send email via mail, sendmail, SMTP.
*
* @param null $config
* @param boolean $getShared
*
* @return \CodeIgniter\Email\Email|mixed
*/
public static function email($config = null, bool $getShared = true)
{
if ($getShared)
{
return static::getSharedInstance('email', $config);
}

if (empty($config))
{
$config = new \Config\Email();
}

$email = new \CodeIgniter\Email\Email($config);
$email->setLogger(static::logger(true));

return $email;
}

//--------------------------------------------------------------------

/**
* The Exceptions class holds the methods that handle:
*
Expand Down
Loading

0 comments on commit 4340e66

Please sign in to comment.