Aws\Ses\SesClient::generateSmtpPassword PHP Method

generateSmtpPassword() public static method

The SMTP username is the Access Key ID for the provided credentials.
public static generateSmtpPassword ( Aws\Credentials\CredentialsInterface $creds ) : string
$creds Aws\Credentials\CredentialsInterface
return string
    public static function generateSmtpPassword(CredentialsInterface $creds)
    {
        static $version = "";
        static $algo = 'sha256';
        static $message = 'SendRawEmail';
        $signature = hash_hmac($algo, $message, $creds->getSecretKey(), true);
        return base64_encode($version . $signature);
    }