Frameworks

Odoo

Use the official Lettermint connector for Odoo to send Odoo email through the Lettermint API. Odoo shows bounces and failed deliveries on the message, the contact, and the campaign. It does not use SMTP. See Integrations for other packages.

The connector has three add-ons. Install only the ones you need:

Add-onTechnical nameWhat it does
Lettermint Emaillettermint_mailSends business email, such as invoices, quotations, and notifications. Shows delivery results in Odoo and syncs suppressions.
Lettermint Email Marketinglettermint_mass_mailingSends Email Marketing campaigns through a separate route and updates campaign statistics.
Lettermint Incoming Emaillettermint_mail_inboundReceives replies and alias email in Odoo without an incoming mail server.

Requirements

  • Odoo Community 18 or 19, with access to install server add-ons. Odoo Enterprise and Odoo.sh have not been verified yet. On Odoo Online, use SMTP instead.
  • A Lettermint account with a project and a verified sending domain.
  • A team API token with full access for the guided setup. Odoo uses it once and does not keep it.
  • For delivery results and incoming email, Odoo must be reachable at a public HTTPS address. If one Odoo server hosts more than one database, it must select the database from the host name, for example with dbfilter.

1. Install the add-ons

  1. Download the branch for your Odoo version: 18.0 or 19.0.
  2. Extract the archive and copy the add-on folders that you need into your Odoo add-ons directory.
  3. Restart Odoo and enable developer mode.
  4. Open Apps → Update Apps List.
  5. Install Lettermint Email. For campaigns, also install Lettermint Email Marketing. For incoming email, also install Lettermint Incoming Email.

On a server where you manage Odoo from the command line, you can install the add-ons in one step:

TerminalCode
odoo -d your_database -i lettermint_mail,lettermint_mass_mailing,lettermint_mail_inbound --stop-after-init

2. Connect Odoo to Lettermint

The guided setup connects Odoo to one Lettermint project. Odoo creates its own API tokens, outgoing mail servers, and a webhook, so you don't have to copy anything by hand.

  1. In Lettermint, open Manage team → API tokens and create a team API token. Keep Full access and the expiration Never. Odoo uses the token only during the setup.
  2. In Odoo, open Settings. In the Emails section, select Set up Lettermint.
The Emails section of the Odoo settings with the Set up Lettermint link
  1. Paste the team API token and select Next.
The first step of the Lettermint setup in Odoo asks for a team API token
  1. Select the project, the route for business email, and the sending domain. With Lettermint Email Marketing installed, also select the route for campaigns.
  2. Read the data transfer notice, select Allow email data transfer, and select Connect.
The second step of the Lettermint setup in Odoo with the project, routes, sending domain, and data transfer consent

Odoo then creates:

  • A project API token and a restricted team API token, both named Odoo <database>. The team API token can only read projects, routes, domains, and messages, and manage webhooks and suppressions.
  • An outgoing mail server for each selected route. The business email server gets the highest priority. The campaign server becomes the default server for new campaigns.
  • A webhook for delivery events, if Odoo has a public HTTPS address. Lettermint sends a test event to it right away.

Odoo stores its own API tokens in the database. Protect your database backups like any other credential store. You can delete the team API token that you entered after the setup.

3. Check the connection and send a test email

Open the connection from Settings → Lettermint connections and select Check Connection. Odoo checks the project, the webhook, and the last failed webhook delivery, and shows the result on the connection.

A Lettermint connection in Odoo with the project, webhook, suppression sync, incoming email, and outgoing mail servers

To send a test email, open Settings → Technical → Email → Outgoing Mail Servers, open the Lettermint server, and select Send Test Email. Use an address that you control, then check the inbox and your Lettermint activity.

If the web address of Odoo changes, select Update Webhook on the connection.

Delivery results in Odoo

Lettermint reports what happens after Odoo hands over an email. Odoo uses its own statuses for these results, so they appear where your team already looks: the envelope icon in the chatter, the bounce counter on the contact, and the campaign statistics.

Lettermint eventResult in Odoo
Hard bounceThe recipient status becomes Bounced and the bounce counter of the contact goes up. In a campaign, the recipient becomes Bounced. With Email Marketing, Odoo blocklists an address after repeated bounces.
Failed deliveryThe recipient status becomes Exception with the reason. In a campaign, the recipient becomes Exception.
Suppressed recipientThe recipient status becomes Exception. In a campaign, the recipient becomes Cancelled with the reason Blacklisted Address.
Rejected by content policyAll recipients of the email get the status Exception.

Odoo shows an email as delivered as soon as Lettermint accepts it. A later bounce or failure replaces that status. Select the envelope icon on a message to see each recipient's status.

An Odoo invoice with a red envelope on the sent message and the recipient marked as bounced

Administrators see every event under Settings → Technical → Email → Lettermint Events. Each contact also has an Email events button. Odoo processes an event about one minute after it arrives and retries events that fail. After five attempts, the event gets the status Failed. Open it to see the error, correct the cause, and select Process Again.

The list of Lettermint events in Odoo with bounces, suppressions, deliveries, and an inbound email

Soft bounces, opens, and clicks don't change a status in Odoo. Email that Odoo sends through another server, such as an SMTP server, gets no delivery results.

Suppressions and the Odoo blocklist

The guided setup keeps the Odoo blocklist and the suppressions of your project in sync. Odoo uses the blocklist for Email Marketing.

  • From Lettermint to Odoo. When Lettermint suppresses an address for the project or the whole team, Odoo adds it to the blocklist. This includes hard bounces, spam complaints, unsubscribes, and manual suppressions. When the suppression is removed, Odoo removes the address from the blocklist again, but only if the suppression added it. Domain and extension suppressions are not copied.
  • From Odoo to Lettermint. When an address is added to the blocklist, for example through an unsubscribe link, Odoo adds a manual suppression for campaign email to the project. When the address leaves the blocklist, Odoo deletes that suppression. Odoo never deletes suppressions that Lettermint created, such as bounces and complaints. Remove those in Lettermint.

After the setup, Odoo imports your existing suppressions and then sends its existing blocklist to Lettermint. A large list can take a few minutes. Every change is listed under Settings → Technical → Email → Lettermint Suppressions.

Lettermint suppressions in Odoo, one from the Odoo blocklist and two from Lettermint

To import again, select Import Suppressions on the connection. To stop the sync, turn off Synchronize suppressions. If Lettermint refuses a change five times, the change gets the status Failed. Correct the cause and select Try Again.

Email campaigns

With Lettermint Email Marketing installed, the guided setup creates a second server for your campaign route and makes it the default for new campaigns. Campaigns keep Odoo's own tracking and unsubscribe links. Bounces and failures appear in the campaign statistics.

Keep Use Exclusion List enabled where Odoo shows this setting. Send a test campaign and check its links before you send it to your contacts. To pick a server for one campaign, use Settings → Mail Server on the campaign. If the field is hidden, enable the dedicated mail server option in the Email Marketing settings.

Receive replies and alias email

With Lettermint Incoming Email, Lettermint receives email for a domain and sends it to Odoo through the webhook. Odoo then adds replies to the right document and creates records from email to aliases, such as leads, tasks, or job applications, the same way it does with an incoming mail server. See Inbound email for how Lettermint receives email.

All email for the domain goes to Odoo. Use a domain that only Odoo uses, for example replies.example.com. Don't use the domain of your mailboxes or your sending domain.

  1. Complete the guided setup first. Incoming email needs the webhook, so Odoo must have a public HTTPS address.
  2. Open the connection from Settings → Lettermint connections and select Set Up Incoming Email.
  3. Enter the domain. Keep Use as Odoo alias domain and Move existing aliases selected, so that replies and alias email go to the new domain. Notifications keep a sender address on your sending domain, because Lettermint only sends from verified domains.
  4. Confirm the MX record, enter a team API token with full access, and select Set Up. Odoo creates an inbound route in your project and adds the inbound events to its webhook.
The incoming email setup in Odoo with the domain, alias domain options, MX confirmation, and team API token
  1. Add an MX record for the domain at your DNS provider:
TypeNamePriorityValue
MXreplies.example.com10lettermint.mx
  1. Select Check Connection. Lettermint checks the MX record regularly. When the connection shows that incoming email is ready, reply to an email from Odoo and check that the reply appears on the document.
A customer reply received through Lettermint on an Odoo invoice

Odoo only processes email for its own inbound route and ignores the other inbound routes of the project. When the spam threshold or an inbound rule quarantines an email, it reaches Odoo only after you release it in Lettermint. Lettermint refuses inbound email larger than 25 MB, and Odoo lists the refusal as an event.

Disconnect or uninstall

Select Disconnect on the connection to stop. Odoo archives its mail servers, deletes the webhook, and restores the previous alias domain. Enter a team API token in the disconnect window if Odoo should also delete its API tokens and inbound route in Lettermint. Without a token, delete them in Lettermint yourself.

If you uninstall only Lettermint Incoming Email, Odoo restores the alias domain and removes the inbound events from the webhook. The inbound route stays in Lettermint.

When you neutralize a database, for example a copy for testing, Odoo removes the Lettermint tokens, deactivates the connection, and stops accepting webhook deliveries. The copy can't send email through your project.

Manual setup

Connect one outgoing mail server without the guided setup

Use this when you only want to send email and don't need delivery results or suppression sync.

  1. In Lettermint, create a project API token.
  2. In Odoo, open Settings → Technical → Email → Outgoing Mail Servers in developer mode and create a server.
  3. Select Lettermint API under Authenticate with.
  4. Set FROM Filtering to your verified sending address or domain, and set the priority. A lower number means a higher priority.
  5. Enter the project API token. A team API token can't send email.
  6. Enter a route slug, or leave it empty to use the project's default outbound route.
  7. Select Allow email data transfer, save, and select Test Connection.
  8. Select Send Test Email and use an address that you control.

A successful connection test doesn't prove that the sender or route is ready. Send a test email before you use the server for business email.

Odoo Online

Odoo Online can't install server add-ons. Use the SMTP relay instead:

SettingValue
SMTP Serversmtp.lettermint.co
SMTP Port465
Connection EncryptionSSL/TLS
Usernamelettermint
PasswordYour project API token
FROM FilteringYour verified sending address or domain

In Odoo, enable Use Custom Email Servers in the settings, create the outgoing server, and select Test Connection. SMTP sends through the project's default outbound route, so use a second project if you want campaigns on a separate route. With SMTP, Odoo gets no delivery results, no suppression sync, and no incoming email from Lettermint.

Limits

  • Each email needs at least one visible To recipient. Use SMTP for email with only BCC recipients.
  • An email can have up to 50 recipients and 50 MB, including attachments. See Limitations.
  • Use SMTP for signed or encrypted email and other formats that the API doesn't accept.

Troubleshooting

If email doesn't arrive or Odoo shows an error:

  1. Select Check Connection on the connection. It reports problems with the project, the webhook, and incoming email.
  2. Open Settings → Technical → Email → Emails and filter on failed email to read the error.
  3. Look up the email in your Lettermint activity.
  4. If no events arrive, check that Odoo's web.base.url is the public HTTPS address and select Update Webhook. Then select Send Test Event.

Odoo sends each email with an idempotency key. When Odoo retries the same queued email within 24 hours, Lettermint doesn't send it twice. Resend in the chatter, or a retry after 24 hours, sends the email again. If you're not sure whether an email went out, check Lettermint activity before you retry it.

FAQ

Does the connector use SMTP?

No. The add-ons add a Lettermint API option to Odoo's outgoing mail servers and send over HTTPS. That's what makes delivery results possible: each email carries the Odoo message ID as metadata, and Lettermint returns it in the webhook events.

Which data does Odoo send to Lettermint?

After an administrator gives consent, Odoo sends sender and recipient addresses, message content, headers, and attachments for delivery. Each email also carries the Odoo database ID and the Message-ID as metadata. Lettermint processes email on European infrastructure.

Can I use one Lettermint project for several Odoo databases?

Yes. Each database creates its own tokens and webhook, named after the database. Suppressions are shared by the project, so a bounce found through one database also suppresses the address for the others.

Do I still need an incoming mail server in Odoo?

Not if you use Lettermint Incoming Email. Lettermint receives the email and sends it to Odoo through the signed webhook. Without that add-on, configure an incoming mail server in Odoo as usual.

Next steps

Routes

Separate business email and campaigns.

Suppressions

How Lettermint suppresses addresses.

Webhooks

The events behind the Odoo delivery results.

Inbound email

Spam filtering, rules, and raw email.

Lettermint connector for Odoo

Source code, releases, and issues on GitHub.