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

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