how to solve undefined variable: mime_boundary

You can try using this:

$mime_boundary = isset($mime_boundary) ? $mime_boundary : '';

in place of:

empty($mime_boundary);

but i think this is no sense…this variable ($mime_boundary) is not exist in your function, so this is empty. You can skip this check and remove this line.

Leave a Comment