e107inc/e107

View on GitHub
e107_handlers/mail.php

Summary

Maintainability
A
1 hr
Test Coverage
F
44%

Method sendemail has 12 arguments (exceeds 7 allowed). Consider refactoring.
Open

function sendemail($send_to, $subject, $message, $to_name='', $send_from='', $from_name='', $attachments='', $Cc='', $Bcc='', $returnpath='', $returnreceipt=false,$inline ='')
Severity: Major
Found in e107_handlers/mail.php - About 1 hr to fix

    Reference to undeclared class \PHPMailer\PHPMailer\PHPMailer
    Open

            parent::__construct(false);        // Parent constructor - no exceptions for now
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Port
    Open

                                $this->Port = ($smtpPort != 587) ? $smtpPort : 465;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Password
    Open

                        $this->Password = $overrides['smtp_password'];
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->From
    Open

                $this->DKIM_identifier  = $this->From;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Assigning 0 to property but \e107Email->add_email is string
    Open

            $this->add_email = 0;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                    fwrite($this->logHandle,'  Mailer opened by '.defset('USERNAME')." - ID: {$this->MessageID}. Subject: {$this->Subject}  Log action: {$this->logEnable}\r\n");
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                        fwrite($this->logHandle, 'Subject: '.$this->Subject."\r\n");
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addAttachment
    Open

                            $this->addAttachment($attach, $tempName,'base64',$this->_mime_types($ext));
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addCustomHeader
    Open

                        $this->addCustomHeader($eh);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->FromName
    Open

            $this->FromName     = $tp->toHTML(vartrue($pref['replyto_name'],$overrides['siteadmin']),'','RAWTEXT');
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Assigning 0 to property but \e107Email->logEnable is string
    Open

            $this->logEnable = 0;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Sender
    Open

                        fwrite($this->logHandle, 'Sender: '.$this->Sender."\r\n");
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

                        if($this->Mailer == 'mail')
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Username
    Open

            if (!empty($eml['smtp_username']))     { $this->Username = $eml['smtp_username']; }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addCustomHeader
    Open

                    $this->addCustomHeader($eml['extra_header']);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Class extends undeclared class \PHPMailer\PHPMailer\PHPMailer
    Open

    class e107Email extends PHPMailer
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->CharSet
    Open

            $this->CharSet = 'utf-8';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::setLanguage
    Open

            $this->setLanguage(CORE_LC);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Assigning int to property but \e107Email->logEnable is string
    Open

            $this->logEnable = (int) $level;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

                        if($this->Mailer == 'mail')
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Sender
    Open

                    $this->Sender = $our_sender.'+'.str_replace($send_to,'@','=').'@'.$our_domain; 
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

                    $this->Mailer = 'mail';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->From
    Open

            $this->From         = $tp->toHTML(vartrue($pref['replyto_email'],$overrides['siteadminemail']),'','RAWTEXT');
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->WordWrap
    Open

            $this->WordWrap     = 76;            // Set a sensible default
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                            $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->DKIM_passphrase
    Open

                $this->DKIM_passphrase  = ''; //key is not encrypted
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addEmbeddedImage
    Open

                        $this->addEmbeddedImage($inline_img, md5($inline_img), basename($inline_img),'base64',$this->_mime_types($ext));
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addReplyTo
    Open

                            $this->addReplyTo($adr, $to_name);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                        $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addCustomHeader
    Open

                            $this->addCustomHeader('Cc: '.$adr);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                    if (vartrue($eml['subject'])) $this->Subject = $tp->parseTemplate($eml['subject'], true, varset($eml['shortcodes'],null));     
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->WordWrap
    Open

            if (!empty($eml['wordwrap']))        { $this->WordWrap = $eml['wordwrap']; }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->FromName
    Open

                if (!empty($eml['sender_name']))    { $this->FromName = $eml['sender_name']; }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Debugoutput
    Open

                $this->Debugoutput = 'handlePHPMailerDebug';    
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Returning type int but sendEmail() is declared to return bool|string
    Open

                    return $error;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Helo
    Open

                    if (vartrue($smtp_options['helo'])) $this->Helo = $smtp_options['helo'];
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPSecure
    Open

                                $this->SMTPSecure = 'tls';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPSecure
    Open

                                $this->SMTPSecure = 'ssl';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPKeepAlive
    Open

                    $this->SMTPKeepAlive = varset($smtp_options['keepalive'],false);                                    // ***** Control this
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Sendmail
    Open

                    $this->Sendmail = ($overrides['sendmail']) ? $overrides['sendmail'] : '/usr/sbin/sendmail -t -i -r '.vartrue($pref['replyto_email'],$overrides['siteadminemail']);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->MessageID
    Open

                    fwrite($this->logHandle,'  Mailer opened by '.defset('USERNAME')." - ID: {$this->MessageID}. Subject: {$this->Subject}  Log action: {$this->logEnable}\r\n");
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->From
    Open

                        fwrite($this->logHandle, 'From: '.$this->From.' ('.$this->FromName.")\r\n");
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                           $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Body
    Open

            $text = $this->Body;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Found a return statement with a value in the implementation of the magic method \e107Email::__construct, expected void return type
    Open

        public function __construct($overrides = false)
    Severity: Info
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

                    $this->Mailer = 'smtp';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::isSMTP
    Open

                    $this->isSMTP();            // Enable SMTP functions
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Port
    Open

                                $this->Port = ($smtpPort != 465) ? $smtpPort : 25;        // Can also use port 587, and maybe even 25
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                        catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addCC
    Open

                                $this->addCC($adr, $to_name);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                            $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                    catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                            catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                    $this->Subject = $tp->parseTemplate(varset($tmpl['subject'],'{SUBJECT}'), true, varset($eml['shortcodes'],null));
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    When fetching an array index from a value of type array<int>|array{},</int> found an array index of type 'textonly', but expected the index to be of type int
    Open

            switch (varset($this->general_opts['textonly'],'off'))
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SingleTo
    Open

            if (!empty($eml['split']))             { $this->SingleTo = ($eml['split'] != false); }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
    Open

                    $this->Sender = $our_sender.'+'.str_replace($send_to,'@','=').'@'.$our_domain; 
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Argument 3 (limit) is '' but \explode() takes int
    Open

            if (vartrue($pref['mail_options'])) $this->general_opts = explode(',',$pref['mail_options'],'');
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Argument 2 (parseBB) is '' but \e_parse::toHTML() takes bool|false defined at /code/e107_handlers/e_parse_class.php:1532
    Open

            $this->FromName     = $tp->toHTML(vartrue($pref['replyto_name'],$overrides['siteadmin']),'','RAWTEXT');
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Argument 2 (parseBB) is '' but \e_parse::toHTML() takes bool|false defined at /code/e107_handlers/e_parse_class.php:1532
    Open

            $this->From         = $tp->toHTML(vartrue($pref['replyto_email'],$overrides['siteadminemail']),'','RAWTEXT');
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->From
    Open

            $this->Sender       = (!empty($pref['mail_bounce_email'])) ? $pref['mail_bounce_email'] : $this->From;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Sender
    Open

            $this->Sender       = (!empty($pref['mail_bounce_email'])) ? $pref['mail_bounce_email'] : $this->From;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->DKIM_domain
    Open

                $this->DKIM_domain      = e_DOMAIN; // 'example.com';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addAddress
    Open

                            $this->addAddress($adr, $to_name);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                            catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ConfirmReadingTo
    Open

            if (!empty($eml['returnreceipt']))    { $this->ConfirmReadingTo = $eml['returnreceipt']; }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to method authorise from undeclared class \PHPMailer\PHPMailer\POP3
    Open

                        $pop->authorise($overrides['smtp_server'], 110, 30, $overrides['smtp_username'], $overrides['smtp_password'], 1);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Assigning int to property but \e107Email->add_email is string
    Open

                $this->add_email = (int) $emailDetails;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::_mime_types
    Open

                            $this->addAttachment($attach, $tempName,'base64',$this->_mime_types($ext));
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    When fetching an array index from a value of type array<string>|array{},</string> found an array index of type float|int, but expected the index to be of type string
    Open

                            $size = isset($mediaParms[$nk]) ? "?w=".$mediaParms[$nk]['w'] : '';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Assigning false to property but \e107Email->logHandle is resource
    Open

        private $logHandle             = false;    // Save handle of log file if opened
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Host
    Open

                    $this->Host = $overrides['smtp_server'];
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->DKIM_private
    Open

                $this->DKIM_private     = $privatekeyfile;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->DKIM_identifier
    Open

                $this->DKIM_identifier  = $this->From;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Body
    Open

                $this->Body = $text;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Returning type void but attach() is declared to return null
    Open

            if (!$attachments) return;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::_mime_types
    Open

                        $this->addEmbeddedImage($inline_img, md5($inline_img), basename($inline_img),'base64',$this->_mime_types($ext));
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                if (vartrue($eml['subject'])) $this->Subject = $tp->parseTemplate($eml['subject'], true, varset($eml['shortcodes'],null));     
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Password
    Open

            if (!empty($eml['smtp_password']))     { $this->Password = $eml['smtp_password']; }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPAuth
    Open

                        $this->SMTPAuth = (!isset($smtp_options['pop3auth']));
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->DKIM_selector
    Open

                $this->DKIM_selector    = 'phpmailer';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addCustomHeader
    Open

                            $this->addCustomHeader('Bcc: '.$adr);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->From
    Open

                if (!empty($eml['sender_email']))    { $this->From = $eml['sender_email']; }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addCustomHeader
    Open

            if (!empty($eml['e107_header']))    { $this->addCustomHeader($identifier.": {$eml['e107_header']}"); }
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Hostname
    Open

                    list(,$this->Hostname) = explode('=',$v);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to method __construct from undeclared class \PHPMailer\PHPMailer\POP3
    Open

                        $pop = new POP3();
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->CharSet
    Open

                    $message = htmlspecialchars($message,ENT_QUOTES,$this->CharSet);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                        var_dump($this->Subject);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::setFrom
    Open

                $this->setFrom($eml['sender_email'], $eml['sender_name']);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Sender
    Open

                $this->Sender = $eml['bouncepath'];                // Bounce path
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

                    $this->Mailer = 'sendmail';
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                                $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                        var_dump($this->Subject);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

            $this->Subject = str_replace("&#039;", "'", $this->Subject);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Priority
    Open

            if (!empty($eml['priority']))        { $this->Priority = $eml['priority']; }
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Username
    Open

                        $this->Username = $overrides['smtp_username'];
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Body
    Open

                        fwrite($this->logHandle, 'Body: '.$this->Body."\r\n");
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                        catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->AltBody
    Open

                $this->AltBody = '';        // Single part email
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                        catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Invalid offset "sitetheme" of array type array{}
    Open

            $eml['shortcodes']['THEME']     = ($this->previewMode == true) ? e_THEME_ABS.$this->pref['sitetheme'].'/' :  e_THEME.$this->pref['sitetheme'].'/'; // Always use front-end theme path. 
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
    Open

            $eml['shortcodes']['THEME']     = ($this->previewMode == true) ? e_THEME_ABS.$this->pref['sitetheme'].'/' :  e_THEME.$this->pref['sitetheme'].'/'; // Always use front-end theme path. 
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPDebug
    Open

            if (isset($eml['SMTPDebug']))        { $this->SMTPDebug = $eml['SMTPDebug'];    }        // 'false' is a valid value!
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::isError
    Open

            if($this->isError())
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Hostname
    Open

                    if ($this->debug) echo "Host name set to: {$this->Hostname}<br />";
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->FromName
    Open

                        fwrite($this->logHandle, 'From: '.$this->From.' ('.$this->FromName.")\r\n");
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                                $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addBCC
    Open

                                $this->addBCC($adr, $to_name);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Returning type int but preview() is declared to return string
    Open

                    return $error;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->MessageID
    Open

            $this->logLine("Send to {$to_name} at {$send_to} Mail-ID={$this->MessageID} - ".($result ? 'Success' : 'Fail'));
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Static call to undeclared method \e107Email::_mime_types
    Open

                        $mimeType  = self::_mime_types($ext);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::html2text
    Open

                 $this->AltBody = static::normalizeBreaks($this->html2text($textMsg, $advanced));
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Static call to undeclared method \e107Email::normalizeBreaks
    Open

                 $this->AltBody = static::normalizeBreaks($this->html2text($textMsg, $advanced));
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->AltBody
    Open

                $this->AltBody = 'To view this email message, enable HTML!' . "\n\n";
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ConfirmReadingTo
    Open

        if (vartrue($returnreceipt)) $mail->ConfirmReadingTo = $returnreceipt;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ErrorInfo
    Open

                    e107::getMessage()->addError($this->ErrorInfo);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::clearCustomHeaders
    Open

            $this->clearCustomHeaders();
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->AltBody
    Open

                 $this->AltBody = static::normalizeBreaks($this->html2text($textMsg, $advanced));
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Body
    Open

            return $this->Body;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Class extends undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

    class e107Exception extends Exception
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Exception::getTraceAsString
    Open

                                        $this->getTraceAsString(),
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject
    Open

                echo "<h2>Subject: ".$this->Subject."</h2>";
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ErrorInfo
    Open

            e107::getLog()->addEvent(3,debug_backtrace(),"MAIL","Send Failed",$this->ErrorInfo,false,LOG_TO_ROLLING);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::smtpClose
    Open

                $this->smtpClose();
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addCustomHeader
    Open

        if (vartrue($mailheader_e107id)) $mail->addCustomHeader($identifier.": {$mailheader_e107id}");
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::setFrom
    Open

                $mail->setFrom($send_from, $from_name);                // These have already been defaulted to sitewide options, so no need to set again if blank
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ErrorInfo
    Open

                e107::getMessage()->addInfo($this->ErrorInfo);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

                if (!$bulkmail && !$this->SMTPKeepAlive && ($this->Mailer == 'smtp')) $this->smtpClose();
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::smtpClose
    Open

                if (!$bulkmail && !$this->SMTPKeepAlive && ($this->Mailer == 'smtp')) $this->smtpClose();
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

            if ($this->SMTPKeepAlive && ($this->Mailer == 'smtp') && ($this->SendCount > 0)) 
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Body
    Open

            $this->Body = static::normalizeBreaks($message);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

            catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::clearAddresses
    Open

            $this->clearAddresses();            // In case we send another email
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ErrorInfo
    Open

            return $this->ErrorInfo;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPKeepAlive
    Open

            if ($this->SMTPKeepAlive && ($this->Mailer == 'smtp') && ($this->SendCount > 0)) 
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                        catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ErrorInfo
    Open

            $this->logLine('Error info: '.$this->ErrorInfo);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Exception::getFile
    Open

                                        $this->getFile().'|@'.$this->getLine(),
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Exception::getCode
    Open

                                        $this->getCode().':'.$this->getMessage(),
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPKeepAlive
    Open

                if ($this->SMTPKeepAlive && ($this->Mailer == 'smtp')) $this->smtpClose();
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Static call to undeclared method \e107Email::normalizeBreaks
    Open

            $this->Body = static::normalizeBreaks($message);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

            parent::__construct($message, $code);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Exception::getMessage
    Open

                                        $this->getCode().':'.$this->getMessage(),
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                            $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Subject (Did you mean $subject)
    Open

        $mail->Subject = $subject;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Sender
    Open

        if (vartrue($returnpath)) $mail->Sender = $returnpath;
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Catching undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                catch (Exception $e)
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::smtpClose
    Open

                if ($this->SMTPKeepAlive && ($this->Mailer == 'smtp')) $this->smtpClose();
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->ErrorInfo
    Open

                $this->logLine('Error info: '.$this->ErrorInfo);
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to method getMessage from undeclared class \PHPMailer\PHPMailer\Exception (Did you mean class \Exception)
    Open

                    $this->logLine($e->getMessage());
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::addEmbeddedImage
    Open

                            $this->addEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::isHTML (Did you mean expr->MsgHTML())
    Open

            $this->isHTML(true);
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Email::send
    Open

                    $result = $this->send();        // Actually send email
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->SMTPKeepAlive
    Open

                if (!$bulkmail && !$this->SMTPKeepAlive && ($this->Mailer == 'smtp')) $this->smtpClose();
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->Mailer
    Open

                if ($this->SMTPKeepAlive && ($this->Mailer == 'smtp')) $this->smtpClose();
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Reference to undeclared property \e107Email->AltBody
    Open

            if(empty($this->AltBody))
    Severity: Minor
    Found in e107_handlers/mail.php by phan

    Call to undeclared method \e107Exception::getLine
    Open

                                        $this->getFile().'|@'.$this->getLine(),
    Severity: Critical
    Found in e107_handlers/mail.php by phan

    There are no issues that match your filters.

    Category
    Status