Skip to content

Detect message type, text or html #582

@Spl4x

Description

@Spl4x

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions