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 @@ -171,26 +171,6 @@ public function setBodyText($text)
171171 return $ this ->setBody ($ text );
172172 }
173173
174- /**
175- * Create HTML mime message from the string.
176- *
177- * @param string $htmlBody
178- * @return \Zend\Mime\Message
179- *
180- * @deprecated All emails that Magento sends should be mime encoded. Therefore
181- * use generic function createMimeFromString
182- * @see createMimeFromString()
183- */
184- private function createHtmlMimeFromString ($ htmlBody )
185- {
186- $ htmlPart = new Part ($ htmlBody );
187- $ htmlPart ->setCharset ($ this ->zendMessage ->getEncoding ());
188- $ htmlPart ->setType (Mime::TYPE_HTML );
189- $ mimeMessage = new \Zend \Mime \Message ();
190- $ mimeMessage ->addPart ($ htmlPart );
191- return $ mimeMessage ;
192- }
193-
194174 /**
195175 * Create mime message from the string.
196176 *
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