public function send(Message $message, string $fingerprint)
    {
        if ($this->serverKeyFingerprint) {
            $this->mailer->send(
                // Encrypted, signed
                $this->encryptAndSign($message, $fingerprint)
            );
        } else {
            $this->mailer->send(
                // Encrypted, unsigned
                $this->encrypt($message, $fingerprint)
            );
        }
    }
public function send(Message $message, string $fingerprint)
    {
        if ($this->serverKeyFingerprint) {
            $this->mailer->send(
                // Encrypted, signed
                $this->encryptAndSign($message, $fingerprint)
            );
        } else {
            $this->mailer->send(
                // Encrypted, unsigned
                $this->encrypt($message, $fingerprint)
            );
        }
    }
public function send ( Message $ message , string $ fingerprint ) { if ( $ this -> serverKeyFingerprint ) { $ this -> mailer -> send ( // Encrypted, signed $ this -> encryptAndSign ( $ message , $ fingerprint ) ) ; } else { $ this -> mailer -> send ( // Encrypted, unsigned $ this -> encrypt ( $ message , $ fingerprint ) ) ; } }
Encrypt then email a message

@param Message $message    The message data
@param string $fingerprint Which public key fingerprint to use
@return void

@throws \Crypt_GPG_Exception
@throws \Crypt_GPG_FileException
@throws GPGMailerException
@throws \PEAR_Exception
Encrypt then email a message