跳到正文
Minsub Ventures 标志

工资单邮件发送系统

邮件设置 → 上传 Excel(第 3 行为表头,第 4 行起为员工数据)→ 编辑主题/正文模板 → 校验与预览 → 按员工发送。上传内容与 SMTP 密码仅保存在浏览器 sessionStorage 与请求内存中,不会写入 Prisma 数据库。

邮件环境设置

填写您自己的 SMTP 账号并保存,然后发送测试邮件以确认连接。

每位访客使用各自的 SMTP 发信,而非 MS Ventures 站点邮件(Resend)。

SMTP 未配置

SMTP 凭据仅保存在本浏览器 sessionStorage,不会写入服务器或 MS Ventures 环境变量。

步骤 1. 上传 Excel

仅支持上传 `.xlsx` 文件。 下载示例模板

  • 无法上传设置了打开密码的工作簿。请在 Excel 中通过「文件 → 信息 → 保护工作簿」移除密码,保存后再上传。
  • 若工作簿含多个工作表,请选择工资表并点击「加载所选工作表」。仅有一张表时会自动加载。
  • 系统按第 3 行为列名、第 4 行起为员工数据读取工资表。

步骤 2. 邮件主题与正文

Available placeholders: {{employeeName}}, {{employeeId}}, {{department}}, {{designation}}, {{month}}, {{payrollMonth}}, {{payslip}} (payslip HTML table — if omitted, it is appended at the end of the body)

{{payrollMonth}}: pay period label — use a Payroll Month (or Pay Month) column on the MSV sheet when needed; on the legacy sheet it matches the Month column. {{month}} on MSV is Working Month (months since hire). {{payslip}} inserts the payslip HTML; if omitted, it is still appended when sending.

上传 Excel 并在下方选择员工后,即可预览替换变量后的主题与正文。