# E-mails to customers

**Setări → E-mailuri către clienți** (*Manages settings*) changes the words of the e-mails the shop sends its
customers, per storefront language: order received (with its intro per delivery and for bank transfer), paid,
shipped, ready for pickup, cancelled and changed; the account's address confirmation, new password, invoice, credit
note and withdrawal link; the withdrawal's steps; subscriptions; files, licence keys and gift cards.

For each e-mail you change the **subject**, the **heading**, the **first paragraph** and, where the e-mail has one,
the **button** and the closing **note**. The rest (the products, totals, payment details, tracking, the withdrawal
link and the footers the law asks for) stays as shipped, so an e-mail can never lose them.

- **Placeholders.** Under each field are the placeholders its original text uses (`:name`, `:number`, `:shop`…); only
  those can be used. A text with another one is refused.
- **Preview.** The panel on the right shows the words with example data as you type.
- **Original text.** An empty field, or the original text typed again, means the original is used. **Pune textul
  inițial** puts it in a field; **Revino la textele inițiale** does it for the whole e-mail, in every language.
- **History.** Every change is kept with who made it and when; **Pune înapoi** restores any earlier text.

The next e-mail sent uses the new words, including those already waiting in the queue. Texts are plain: they are
shown as written, never as HTML.

## Who the e-mails come from

**Setări → E-mailul magazinului** (shop e-mail, *Manages settings*) chooses how the shop's e-mails leave:

- **Prin serverul de e-mail al instalării** (through the install's mail server), the default: they leave from the
  install's address (on SyncSHOP hosting, ours, set up so that they are delivered), with the shop's name as the
  sender. Customers' replies go to the reply-to address in **Setări → Magazin online**.
- **Prin serverul SMTP al magazinului** (through the shop's SMTP server): they leave from the shop's own address
  through its own server, for example the domain host's: **Adresa expeditorului** (sender address), **Server SMTP**,
  **Port** (587, 465, 2525 or 25), **Criptare** (STARTTLS or SSL/TLS), **Utilizator** and **Parolă**. The address must be
  on a domain whose SPF and DKIM records allow that server, or the e-mails land in spam. The password is stored
  encrypted and never shown again; leaving the field empty keeps it.
  On SyncSHOP hosting the server must be on the internet: a name that resolves to an internal address (the
  hosting's own network, loopback, private or link-local ranges) is refused, and is checked again before each use.

**Numele expeditorului** (sender name) is what customers see as the sender; empty means the shop's name. Saving
applies at once, to e-mails already waiting in the queue too.

**Trimite e-mailul de test** sends a message to you straight away, exactly as customers get it. If the server refuses
it (a wrong password, a port the host blocks), the page says what the server answered; nothing changes for customers
until you fix it, but they keep getting e-mails through the server you chose, so test after each change.

