File tree Expand file tree Collapse file tree 2 files changed +3
-20
lines changed
lib/internal/Magento/Framework/Mail Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -156,26 +156,6 @@ public function getRawMessage()
156156 return $ this ->zendMessage ->toString ();
157157 }
158158
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-
179159 /**
180160 * Create mime message from the string.
181161 *
Original file line number Diff line number Diff line change 55 */
66namespace Magento \Framework \Mail \Test \Unit ;
77
8+ /**
9+ * test Magento\Framework\Mail\Message
10+ */
811class MessageTest extends \PHPUnit \Framework \TestCase
912{
1013 /**
You can’t perform that action at this time.
0 commit comments