File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
lib/internal/Magento/Framework/Mail Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Framework \Mail ;
8
8
9
- use Zend \Mail \Message ;
10
- use Zend \Mail \Transport \Sendmail ;
11
-
12
9
class Transport implements \Magento \Framework \Mail \TransportInterface
13
10
{
14
11
/**
15
- * @var Sendmail
12
+ * @var \Zend\Mail\Transport\ Sendmail
16
13
*/
17
14
private $ zendTransport ;
18
15
/**
@@ -27,7 +24,7 @@ class Transport implements \Magento\Framework\Mail\TransportInterface
27
24
*/
28
25
public function __construct (\Magento \Framework \Mail \MessageInterface $ message , $ parameters = null )
29
26
{
30
- $ this ->zendTransport = new Sendmail ($ parameters );
27
+ $ this ->zendTransport = new \ Zend \ Mail \ Transport \ Sendmail ($ parameters );
31
28
$ this ->_message = $ message ;
32
29
}
33
30
@@ -41,7 +38,7 @@ public function sendMessage()
41
38
{
42
39
try {
43
40
$ this ->zendTransport ->send (
44
- Message::fromString ($ this ->_message ->getRawMessage ())
41
+ \ Zend \ Mail \ Message::fromString ($ this ->_message ->getRawMessage ())
45
42
);
46
43
} catch (\Exception $ e ) {
47
44
throw new \Magento \Framework \Exception \MailException (new \Magento \Framework \Phrase ($ e ->getMessage ()), $ e );
You can’t perform that action at this time.
0 commit comments