File tree 2 files changed +3
-20
lines changed
lib/internal/Magento/Framework/Mail 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -156,26 +156,6 @@ public function getRawMessage()
156
156
return $ this ->zendMessage ->toString ();
157
157
}
158
158
159
- /**
160
- * Create HTML mime message from the string.
161
- *
162
- * @param string $htmlBody
163
- * @return \Zend\Mime\Message
164
- *
165
- * @deprecated All emails that Magento sends should be mime encoded. Therefore
166
- * use generic function createMimeFromString
167
- * @see createMimeFromString()
168
- */
169
- private function createHtmlMimeFromString ($ htmlBody )
170
- {
171
- $ htmlPart = new Part ($ htmlBody );
172
- $ htmlPart ->setCharset ($ this ->zendMessage ->getEncoding ());
173
- $ htmlPart ->setType (Mime::TYPE_HTML );
174
- $ mimeMessage = new \Zend \Mime \Message ();
175
- $ mimeMessage ->addPart ($ htmlPart );
176
- return $ mimeMessage ;
177
- }
178
-
179
159
/**
180
160
* Create mime message from the string.
181
161
*
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \Mail \Test \Unit ;
7
7
8
+ /**
9
+ * test Magento\Framework\Mail\Message
10
+ */
8
11
class MessageTest extends \PHPUnit \Framework \TestCase
9
12
{
10
13
/**
You can’t perform that action at this time.
0 commit comments