Skip to content

Commit

Permalink
closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Oct 9, 2019
1 parent 49aa8cc commit 62e395e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Model/Transport/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
namespace Ebizmarts\MandrillSmtp\Model\Transport;

use Magento\Framework\Exception\MailException;
use Magento\Framework\Mail\EmailMessageInterface;
use Magento\Framework\Phrase;
use Zend\Mail\Message;
use Zend\Mail\Transport\SmtpOptions;
use Ebizmarts\MandrillSmtp\Helper\Data as HelperData;
use Zend\Mail\Transport\Smtp as SmtpTransport;
use Magento\Framework\Mail\MessageInterface;


class Smtp extends SmtpTransport
Expand All @@ -41,11 +41,11 @@ public function __construct(
}

/**
* @param MessageInterface $message
* @param EmailMessageInterface $message
* @throws MailException
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function sendMessage(MessageInterface $message)
public function sendMessage(EmailMessageInterface $message)
{
$options = new SmtpOptions();
$options->setPort(HelperData::PORT);
Expand All @@ -68,6 +68,5 @@ public function sendMessage(MessageInterface $message)
$e
);
}

}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"description": "Connect Mandrill with Magento via SMTP",
"type": "magento2-module",
"version": "102.3.1",
"version": "102.3.2",
"authors": [
{
"name": "Ebizmarts Corp",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Ebizmarts_MandrillSmtp" setup_version="101.2.35">
<module name="Ebizmarts_MandrillSmtp">
<sequence>
<module name="Magento_Email"/>
</sequence>
Expand Down

0 comments on commit 62e395e

Please sign in to comment.