diff options
| author | lain <lain@soykaf.club> | 2020-07-27 12:34:36 +0000 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-07-27 12:34:36 +0000 | 
| commit | 2a3abfd326f0cbb588dfe66a23e9783be3038a5e (patch) | |
| tree | be613ab3be331362b94cb1181dd52a8831a2330e /docs | |
| parent | 64b21cee1417347ddb2a7f7470eb1d7f235ea0ab (diff) | |
| parent | 0d5d1c62efa94ea8fd204dbe4a77073b0374cad4 (diff) | |
| download | pleroma-2a3abfd326f0cbb588dfe66a23e9783be3038a5e.tar.gz pleroma-2a3abfd326f0cbb588dfe66a23e9783be3038a5e.zip | |
Merge branch 'issue/1934-welcome-email' into 'develop'
[#1934] welcome email
See merge request pleroma/pleroma!2786
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/configuration/cheatsheet.md | 32 | 
1 files changed, 30 insertions, 2 deletions
| diff --git a/docs/configuration/cheatsheet.md b/docs/configuration/cheatsheet.md index 042ad30c9..5e50f1ba9 100644 --- a/docs/configuration/cheatsheet.md +++ b/docs/configuration/cheatsheet.md @@ -46,8 +46,6 @@ To add configuration to your config file, you can copy it from the base config.  * `max_pinned_statuses`: The maximum number of pinned statuses. `0` will disable the feature.  * `autofollowed_nicknames`: Set to nicknames of (local) users that every new user should automatically follow.  * `attachment_links`: Set to true to enable automatically adding attachment link text to statuses. -* `welcome_message`: A message that will be send to a newly registered users as a direct message. -* `welcome_user_nickname`: The nickname of the local user that sends the welcome message.  * `max_report_comment_size`: The maximum size of the report comment (Default: `1000`).  * `safe_dm_mentions`: If set to true, only mentions at the beginning of a post will be used to address people in direct messages. This is to prevent accidental mentioning of people when talking about them (e.g. "@friend hey i really don't like @enemy"). Default: `false`.  * `healthcheck`: If set to true, system data will be shown on ``/api/pleroma/healthcheck``. @@ -63,6 +61,36 @@ To add configuration to your config file, you can copy it from the base config.  * `external_user_synchronization`: Enabling following/followers counters synchronization for external users.  * `cleanup_attachments`: Remove attachments along with statuses. Does not affect duplicate files and attachments without status. Enabling this will increase load to database when deleting statuses on larger instances. +## Welcome +* `direct_message`: - welcome message sent as a direct message. +  * `enabled`: Enables the send a direct message to a newly registered user. Defaults to `false`. +  * `sender_nickname`: The nickname of the local user that sends the welcome message. +  * `message`: A message that will be send to a newly registered users as a direct message. +* `email`: - welcome message sent as a email. +  * `enabled`: Enables the send a welcome email to a newly registered user. Defaults to `false`. +  * `sender`: The email address or tuple with `{nickname, email}` that will use as sender to the welcome email. +  * `subject`: A subject of welcome email. +  * `html`: A html that will be send to a newly registered users as a email. +  * `text`: A text that will be send to a newly registered users as a email. + +    Example: + +  ```elixir +  config :pleroma, :welcome, +      direct_message: [ +        enabled: true, +        sender_nickname: "lain", +        message: "Hi, @username! Welcome on board!" +        ], +      email: [ +        enabled: true, +        sender: {"Pleroma App", "welcome@pleroma.app"}, +        subject: "Welcome to <%= instance_name %>", +        html: "Welcome to <%= instance_name %>", +        text: "Welcome to <%= instance_name %>" +    ] +  ``` +  ## Message rewrite facility  ### :mrf | 
