I think you can just use action_add_part($entity, "text/plain", "-suggest", "$report\n", "", "inline",0); There's no need for another part with same content($report)