Code Duplication    Length = 4-5 lines in 2 locations

include/functions.php 1 location

@@ 591-594 (lines=4) @@
588
        //$mail->SMTPDebug = 2;
589
        $mail->Host = $account_server_out;
590
    }
591
    if (_XNEWSLETTER_ACCOUNTS_TYPE_VAL_SMTP == $account_type || _XNEWSLETTER_ACCOUNTS_TYPE_VAL_GMAIL == $account_type) {
592
        $mail->Port = $account_port_out; // set the SMTP port
593
        $mail->Host = $account_server_out; //sometimes necessary to repeat
594
    }
595
    if ('' != $account_securetype_out) {
596
        $mail->SMTPAuth   = true;
597
        $mail->SMTPSecure = $account_securetype_out; // sets the prefix to the server

include/task.inc.php 1 location

@@ 344-348 (lines=5) @@
341
                $mail->Host = $account_server_out;
342
            }
343
344
            if (_XNEWSLETTER_ACCOUNTS_TYPE_VAL_SMTP == $account_type
345
                || _XNEWSLETTER_ACCOUNTS_TYPE_VAL_GMAIL == $account_type) {
346
                $mail->Port = $account_port_out; // set the SMTP port
347
                $mail->Host = $account_server_out; //sometimes necessary to repeat
348
            }
349
350
            if ('' != $account_securetype_out) {
351
                $mail->SMTPAuth   = true;