Use an app password if your provider supports one (Zone: "device-specific password"). You can revoke it any time without changing your real password.
Generate a key to send email from your own automations (n8n, MCP, Claude Code). You will see it only once.