encoding = $encoding; } /** * Get the name of the ESMTP extension this handles. * * @return string */ public function getHandledKeyword() { return '8BITMIME'; } /** * Not used. */ public function setKeywordParams(array $parameters) { } /** * Not used. */ public function afterEhlo(Swift_Transport_SmtpAgent $agent) { } /** * Get params which are appended to MAIL FROM:<>. * * @return string[] */ public function getMailParams() { return ['BODY='.$this->encoding]; } /** * Not used. */ public function getRcptParams() { return []; } /** * Not used. */ public function onCommand(Swift_Transport_SmtpAgent $agent, $command, $codes = [], &$failedRecipients = null, &$stop = false) { } /** * Returns +1, -1 or 0 according to the rules for usort(). * * This method is called to ensure extensions can be execute in an appropriate order. * * @param string $esmtpKeyword to compare with * * @return int */ public function getPriorityOver($esmtpKeyword) { return 0; } /** * Not used. */ public function exposeMixinMethods() { return []; } /** * Not used. */ public function resetState() { } }