-
-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Labels
Description
Friends
Is there any function or method to detect if a message is HTML or TEXT?
For example:
if(condition){
$body = $message->getBodyHtml();
} else {
$body = $message->getBodyText();
}
Or the possibility of retrieving the complete message regardless of the type with a single function.
It happens to me that a message, for example, a response to a server error (Delivery Status Notification (Failure)) comes with the first part in text and the second part in html. When I retrieve the message through the library, it only detects part of the content.
Thanks!