Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:mailpreferences

Zeigt und ändert die E-Mail-Einstellungen eines Benutzers oder einer Adresse: Kategorien, Hauptschalter, Häufigkeit, Export, Löschen.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/mailpreferences.md

On this page

This page is a translation. Read the English original

exp:mailpreferences

Zeigt und ändert die E-Mail-Einstellungen eines Benutzers oder einer Adresse: Kategorien, Hauptschalter, Häufigkeit, Export, Löschen.

Skript bin/php/mailpreferences.php, Code in kernel/private/classes/commands/mailpreferences.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:mailpreferences --help
./console exp:mail:preferences --help
php bin/php/mailpreferences.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

E-mail preferences of one person
  categories                the categories (identifier, essential/optional, default, frequencies, double opt-in)
  show                      the person's master switch, categories, frequencies, suppression, pending confirmations
  set                       switch a category on or off (--category, --state=on|off)
  frequency                 the frequency of a category (--category, --frequency=immediate|daily|weekly)
  master                    the master switch "all optional mail" (--state=on|off)
  export                    everything stored about the person, JSON or CSV (--format, --output)
  erase                     remove the preferences, anonymise the consent log (--yes)
  link                      print the person's preference link (works without login)
Every change is written to the consent log with source admin (or --source=import for consent
confirmed elsewhere) and the wording of --wording. Addresses are hidden unless --addresses.

./console exp:mail:preferences show --user=editor
./console exp:mail:preferences set [email protected] --category=newsletter --state=on --no-mail
./console exp:mail:preferences master --user=14 --state=off
./console exp:mail:preferences export --user=editor --format=csv --output=var/tmp/editor.csv

Optionen

OptionWertHilfe
--usererforderlichdie Person: ein Login oder eine Benutzer-ID
--emailerforderlichdie Person: eine Adresse (und das Konto, zu dem sie gehört, falls vorhanden)
--categoryerforderlichset, frequency: der Kategoriebezeichner
--stateerforderlichset, master: on oder off
--frequencyerforderlichfrequency: immediate, daily oder weekly
--formaterforderlichexport: json (Standard) oder csv
--outputerforderlichexport: in diese Datei statt auf den Bildschirm schreiben
--wordingerforderlichder im Einwilligungsprotokoll festgehaltene Text (Standard: "Changed on the console")
--sourceerforderlichadmin (Standard) oder import: import schaltet eine Kategorie mit Double-Opt-in sofort ein
--no-mailset: die Bestätigungsmail eines Double-Opt-in nicht senden
--yeserase: wirklich löschen
--jsonshow, categories: JSON
--addressesdie Adresse zeigen, statt sie zu verbergen

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/mailpreferences.php, kernel/private/classes/commands/mailpreferences.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x