.. include:: /Includes.rst.txt .. _feature-1792250424: ============================================================= Feature: Mails to employees by managers and the sent-mail log ============================================================= Description =========== Mails to employees can now come from a mail template, carry uploaded files and templates attached as a PDF for each recipient, and be written by managers to the people of their team as well as by HR. Each recipient gets a mail of their own in their language, filled with their own data and with only their own address; replies go to the work address of the person who wrote it, and a private address never appears. A manager may use only placeholders of the directory and of work data. The writer and HR see the delivery of each recipient. Every mail a company sends is kept in the sent-mail log with its source, recipient, subject, status and, for a limited time, its content. HR reads the log of the company, and every person reads the mails sent to them; reading another person's mail is recorded in that person's log of reads. Mails carrying a credential, such as invitations and password reset links, are logged without content. The content is deleted after the company's retention, by default 180 days. Impact ====== ``sendEmployeeMail`` takes a template, files and document templates and answers with the mail's ID; recipients who left the company, have no account or no work address are ``skipped`` with the reason, where they were ``refused`` or ``failed`` before. The API offers ``getEmployeeMail``, the sent-mail log under ``/api/v1/sent-mails`` and ``/api/v1/me/sent-mails``, and the retention under ``/api/v1/sent-mail-settings``. .. index:: API, package:adsum-core