Any option to add a field type to user attributes ? (linked admin)

Hello,

My aim is to have a mail sent with a FROM name depending on the admin linked to the subscriber user.
This would be like this :

  • add a user field linking user to an admin (linked_admin)
  • create a plugin which can insert a placeholder in the FROM template field
  • define a default value if the linked_admin is not valued or is false (deleted admin)

Do you see any alternative to reach a FROM depending on user properties ?

Regards.