How to pass variables to a custom panel field?

You are not sending anything back to the panel from your field route, which seems to end in a 404 code.

You could find out about the email status and return it.

return ['status' => 'success']