Configurare l'email in arrivo per creare nuovi argomenti o raggruppare i messaggi

:bookmark: This guide explains how to set up incoming emails to create new topics or group messages in Discourse, including configuration of site settings and category or group-specific settings.

:person_raising_hand: Required user level: Administrator

This guide covers:

  • Enabling and configuring incoming emails
  • Choosing between category and group for incoming emails
  • Setting up incoming emails for a group
  • Setting up incoming emails for a category
  • Deciding how forwarded emails are handled

:information_source: If you have already set up reply via email, or you are on a hosting plan that pre-configures your incoming email, you’re now ready to set up Starting a New Topic via Email.

Configuring site settings

To enable incoming emails, you need to configure three main site settings:

  1. email_in: This setting must be enabled for incoming emails to work.
  2. email in allowed groups: Users must belong to this group to send an email to Discourse.
  3. enable_staged_users: This setting allows the creation of staged users for unknown email addresses.

:warning: For Discourse hosted sites, the enable_staged_users setting is disabled and hidden during the trial to prevent abuse. Once a subscription is started, the setting is unhidden. To ask for it to be enabled during your trial, contact team@discourse.org.

To configure these settings:

  1. Go to your site’s Admin panel
  2. Navigate to Settings
  3. Search for each setting and configure as needed

:information_source: Staged users are special user accounts in Discourse created to support incoming emails from anyone. They have limited functionality:

  • Can’t be mentioned or searched for
  • Don’t receive digests
  • Can only be notified of and reply to topics they started or were invited to
  • Will be promoted to a normal user if they create an account using the same email address

Choosing between categories and groups

Decide whether you want incoming emails to create topics in a category or messages in a group.

Using a group

Benefits of using a group:

  • Useful for setting up a support-like workflow
  • Creates a message sent to all group members
  • Messages appear in /my/messages
  • Anyone can send an email to the group
  • Any group member can read, reply, delete, or archive the message
  • Each group member has their own read tracking state

Using a category

Benefits of using a category:

  • Simulates a mailing list
  • Creates a topic in the specified category
  • Anyone with access to the category can read and reply via web interface or email
  • Respects category security settings
  • Respects the email in allowed groups site setting
  • Allows disabling staged users on a per-category basis

Setting up incoming emails for a group

To configure incoming emails for a group:

  1. Go to the Groups page from the main menu

  2. Click on the group name (or create a new group)

  3. For a new group, find the “Custom incoming email address” field at the bottom of the form

  4. For an existing group, go to the Manage tab, then click Interaction in the left side menu

  5. Enter the email address(es) you want to associate with the group (separate multiple addresses with |)

  6. Click Save to apply the changes

:warning: For Discourse hosted sites, check the “Accept incoming emails sent to:” box and forward your custom email(s) to this address for proper functionality.

Setting up incoming emails for a category

To configure incoming emails for a category:

  1. Go to the category page (e.g., /c/<category_slug>)

  2. Click the Edit button
    Edit category button

  3. In the Edit category modal, click the Settings tab

  4. Look for “Accept emails from anonymous users with no accounts” and “Custom incoming email address” fields

  5. Enable “Accept emails from anonymous users with no accounts” if you want to create staged users for unknown email addresses

  6. Enter the email address(es) you want to associate with the category

  7. Click Save Category to apply the changes

:warning: For Discourse hosted sites, check the “Accept incoming emails sent to:” box and forward your custom email(s) to this address for proper functionality.

Forwarded emails behavior

You can decide how forwarded emails appear in Discourse using the forwarded emails behaviour site setting, which has the following options:

  • hide - a new new topic or PM will be created with the forwarded text included as hidden text that can be expanded to view
  • quote - a new topic or PM will be created with the forwarded text included as quoted text.
  • create replies - a new topic or PM will be created authored by the original sender. Replies will be created authored by participants in the email. If the user accounts do not already exist matching the sender email addresses, they will be created as staged user accounts.

Additional resources

50 Mi Piace
Can I start a new topic by sending an email message?
Understanding email in functionality
Troubleshoot reply by email
Good use cases for groups (to better understand groups vs categories)
Post without signup?
Setting an incoming e-mail address for the staff group
How to configure group email address
When site require approvals for users, email replies do not get sent to staged users
Configuring alternative incoming email address for hosted account
Use Discourse as a Private Support/Ticket System
Start Discourse by Mail
Using discourse to manage support emails: receive and reply
Receiving emails into Discourse messages. Can this be done?
How do I set up group email addresses?
Start Topic via E-Mail with different domain
Creating a staged user with an API call
Good guide on how to use discourse via email
What is a staged user?
New group PM from email
How to create topics from a custom email address?
Utilising email support for reporting from grafana
Category configuration option : mirrors a mailing list
Discourse will not accept forwarded email but successfully sends and an error message to the original sender?
Changing email subject line should start a new topic
Can Discourse accept attachments when using emails to create new category topics?
Implementing KCS
Use aliases in iRedMail for categories with incoming email feature enabled
What is the "Custom incoming email address"?
Preferred communication channel for accessibility for blind readers?
Trying to setup direct delivery of incoming email and new topic by email
Can I start a new topic by sending an email message?
Canonical doc on using discourse via email for end-users?
"Email in allowed groups" setting is too permissive
Error adding a backup email address: address already in use by a staged user
Find the reply key for a specific topic. Rails console magic?
Allowing email from a stranger because I trust them. How?
Can’t set email-in for existing group?
Query about creating topics in a category using email
What exact email address do I use for “Custom Incoming email address”?
Contact Form
How to configure Discourse to receive email from Mailgun?
Can an admin create a staged user?
Simple sensor-driven notifications in Discourse via Webhooks or MQTT?
Configuring Incoming Email to Create Category Topics or Group Messages
Configuring Incoming Email to Create Category Topics or Group Messages
Setting up a support inbox
Category configuration option : mirrors a mailing list
Set up reply by email with POP3 polling
[PAID] Auto create new topic when I publish a video on YouTube
Set up reply by email with POP3 polling
Who is Discobot?
Configuring incoming email to create new topics with email forwarding?
Comparing Discourse for Teams with Discourse
Anonymous form that creates a topic
How to go about hosting a design contest?
Can I start a new topic by sending an email message?
Can I start a new topic by sending an email message?
Can’t set email-in for existing group?
Can’t set email-in for existing group?
Discourse 1.9.0.beta15 Release Notes
Registering unregistered users on first email a la mailman?
Private support categories: staged users can email in, but not registered users
Use Discourse as a Private Support/Ticket System
Creating a topic via email without write access to the category?

3 post sono stati divisi in un nuovo argomento: Impossibile impostare l’invio via email per un gruppo esistente?

Un post è stato diviso in un nuovo argomento: L’IA può rispondere automaticamente alle email

Qualche pensiero sull’opzione in arrivo per le email reindirizzate (poiché l’indirizzo del destinatario originale viene salvato invece di cambiare in quello reindirizzato).

Caso: Ho un account Atlassian Confluence con un indirizzo email personale collegato lee@dot.com. Volevo ricevere email su qualsiasi modifica allo spazio e raccoglierle in un unico posto su un forum. Quindi ho creato un abbonamento all’intero spazio. Tali email generate automaticamente contengono la frase “Smetti di guardare”, che avevo pianificato di utilizzare come modello per il filtro.

Nelle impostazioni della casella di posta, ho abilitato una regola di reindirizzamento per le email che includono questo modello, come mostrato nell’immagine sottostante. L’email dovrebbe essere reindirizzata a bob@ex.com. Questa email corrisponde a una specifica categoria del forum. Dopo l’elaborazione, questa email viene automaticamente eliminata dalla mia casella di posta lee@dot.com, in modo da non dover gestire il flusso di email.

Come si è scoperto, le email direttamente indirizzate a bob@ex.com sono state assegnate correttamente alla categoria del forum. Ma le email reindirizzate per qualche motivo sconosciuto sono finite nella sezione non categorizzata.

Forse qualcuno cercherà una soluzione allo stesso problema mio. Quindi descriverò qual era il problema.

Quando ho esaminato attentamente la sezione dei log in /admin/email/received, ho scoperto che il campo TO delle email reindirizzate contiene non l’indirizzo che ho impostato nella proprietà della categoria, ma la mia email personale. Ed è quello che dovrei inserire nella categoria come indirizzo email in arrivo.

Spiegazione:

  • â„–1 (email diretta) va alla categoria corretta
  • â„–2 e â„–3 (email reindirizzate) vanno a non categorizzate

Pertanto, il suggerimento popup mi ha aiutato a capire quale indirizzo viene utilizzato nel campo TO. Forse è corretto qui, o forse verrà corretto in futuro, ma al momento funziona così.