| @@ -1,12 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace BitCode\BitForm\Core\Util; |
| 4 | 4 | |
| 5 | -if (!defined('ABSPATH')) { | |
| 6 | - exit; | |
| 7 | -} | |
| 8 | - | |
| 9 | 5 | use BitCode\BitForm\Core\Integration\IntegrationHandler; |
| 10 | 6 | |
| 11 | 7 | /** |
| 12 | 8 | * Class handling plugin activation. |
| @@ -39,16 +35,10 @@ | ||
| 39 | 35 | $phpmailer->Port = $integration_details->port; |
| 40 | 36 | $phpmailer->Username = $integration_details->smtp_user_name; |
| 41 | 37 | $phpmailer->Password = $integration_details->smtp_password; |
| 42 | 38 | $phpmailer->SMTPSecure = $integration_details->encryption; |
| 43 | - // $phpmailer->SMTPDebug = 1; | |
| 44 | - // $phpmailer->Debugoutput = 'error_log'; | |
| 39 | + $phpmailer->SMTP_DEBUG = 1; | |
| 45 | 40 | $phpmailer->From = $integration_details->form_email_address; |
| 46 | - $phpmailer->Sender = $integration_details->form_email_address; | |
| 47 | - if (isset($this->config['from_email']) && !empty($this->config['from_email'])) { | |
| 48 | - $phpmailer->From = $this->config['from_email']; | |
| 49 | - $phpmailer->Sender = $this->config['from_email']; | |
| 50 | - } | |
| 51 | 41 | $from_name = $integration_details->form_name; |
| 52 | 42 | if (isset($this->config['from_name']) && !empty($this->config['from_name'])) { |
| 53 | 43 | $from_name = $this->config['from_name']; |
| 54 | 44 | } |