Zaslat záznam e-mailem: Multipurpose self-configuration of programmable photonic circuits