public/src/EmailControl/EmailMailgun.php
private function sendEmail()
    {
        if($this->mailGunApi) {
            $param = [
                'from' => "{$this->nomeRemetente} <{$this->emailRemetente}>",
                'to' => $this->email,
                'subject' => $this->assunto,
                'text' => $this->mensagem,
                'html' => $this->html
            ];

            $param = $this->checkAnexo($param);

            $mg = Mailgun::create($this->mailGunApi);
            $this->result = $mg->messages()->send($this->mailGunDomain, $param);
        }
    }
private function sendEmail()
    {
        if($this->mailGunApi) {
            $param = [
                'from' => "{$this->nomeRemetente} <{$this->emailRemetente}>",
                'to' => $this->email,
                'subject' => $this->assunto,
                'text' => $this->mensagem,
                'html' => $this->html
            ];

            $param = $this->checkAnexo($param);

            $mg = Mailgun::create($this->mailGunApi);
            $this->result = $mg->messages()->send($this->mailGunDomain, $param);
        }
    }
/*
***************************************
**********  PRIVATE METHODS  **********
***************************************