public function sendEmail($to, $subj, $msg, $shortcodes = '', $bcc = false) {
        if ( !empty($shortcodes) && is_array($shortcodes) ) :
            foreach ($shortcodes as $code => $value)                $msg = str_replace('{{'.$code.'}}', $value, $msg);
        endif;
        /* Multiple recepients? */        if ( is_array( $to ) )            $to = implode(', ', $to);
        $mail = new PHPMailer(true);        $mymail = 'kendi@mail.com';        $sifre = 'sifrem';        $sunucu = 'smtp1.example.com';        $port = '';        try {            //Server settings            $mail->SMTPDebug = 0;            $mail->isSMTP();            $mail->Host = $sunucu;            $mail->SMTPAuth = true;            $mail->Username = $mymail;            $mail->Password = $sifre;            $mail->SMTPSecure = 'tls';            $mail->Port = $port;
            //Recipients            $mail->setFrom($mymail);            $mail->addAddress($to);            $mail->addReplyTo($mymail);            /* BCC address. */            if ( $bcc ) {                $mail->addBCC($to);                $to = null;            }
            //Content            $mail->isHTML(true);            $mail->Subject = $subj;            $mail->Body = nl2br(html_entity_decode($msg));
            return $mail->send();            //echo 'Message has been sent';        } catch (Exception $e) {            echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;        }
    }
Fonksiyonu yukarıdakiyle değiştirdiğinizde çalışması lazım. Değiştirmeniz gereken string değerler var. Onları da halledeceğinizi düşündüm. Ödeme istemiyorum, TEMA ya da Mehmetçik Vakfına 10-20₺ ödeme yapmanız yeterli.

https://paste.ubuntu.com/p/5ngN9GKr2p/