Code Duplication    Length = 4-5 lines in 2 locations

include/functions.php 1 location

@@ 615-618 (lines=4) @@
612
        //$mail->SMTPDebug = 2;
613
        $mail->Host = $account_server_out;
614
    }
615
    if (_XNEWSLETTER_ACCOUNTS_TYPE_VAL_SMTP == $account_type || _XNEWSLETTER_ACCOUNTS_TYPE_VAL_GMAIL == $account_type) {
616
        $mail->Port = $account_port_out; // set the SMTP port
617
        $mail->Host = $account_server_out; //sometimes necessary to repeat
618
    }
619
    if ('' != $account_securetype_out) {
620
        $mail->SMTPAuth   = true;
621
        $mail->SMTPSecure = $account_securetype_out; // sets the prefix to the server

include/task.inc.php 1 location

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