Method |
Description |
|
__construct ( TransportInterface $transport, array $options = [], string $serverKey = '' ) |
GPGMailer constructor. |
|
decrypt ( Message $message ) : Message |
Encrypt the body of an email. |
|
encrypt ( Message $message, string $fingerprint ) : Message |
Encrypt the body of an email. |
|
encryptAndSign ( Message $message, string $fingerprint ) : Message |
Encrypt and sign the body of an email. |
|
export ( string $fingerprint ) : string |
Get the public key corresponding to a fingerprint. |
|
getTransport ( ) : TransportInterface |
Return the stored Transport. |
|
import ( string $gpgKey ) : string |
Import a public key, return the fingerprint |
|
send ( Message $message, string $fingerprint ) |
Encrypt then email a message |
|
sendUnencrypted ( Message $message, boolean $force = false ) |
Email a message without encrypting it. |
|
setPrivateKey ( string $serverKey ) : self |
Sets the private key for signing. |
|
sign ( Message $message ) : Message |
Sign a message (but don't encrypt) |
|
verify ( Message $message, string $fingerprint ) : boolean |
Verify a message |
|