SMS Marketing - Odoo 20 Community Book

SMS Marketing Menu: The Mailings

The List of SMS Mailings

SMS Marketing > SMS Marketing shows all the text mailings. The columns are the Date, the Title, the Responsible person, A/B Test (a tick if the mailing is part of an A/B test), the number Sent, the percent Clicked, and the Status. You can add the columns Recipients, Campaign and Bounced (%) from the small switch icon at the right end of the header. The list opens with the filter My SMS Marketing. Remove it to see the mailings of other people.

odoo Development

Here the draft Weekend showroom sale has not been sent, and two mailings are Sent: Showroom opening invitation and Autumn sale reminder. The line at the bottom adds up the number of sent messages.

The four icons at the top right change the way you see the mailings. The first is this list. The second is a kanban view, with one column for each status: Draft, In Queue, Sending and Sent. A kanban view shows each record as a small card, and you can move the cards. The third is a calendar, and the fourth is a graph of the results.

odoo Development

The status has these values. Draft: you are still writing. In Queue: you clicked Send or Schedule, and the mailing waits for its time. Sending: the messages are going out. Sent: all the messages were handed to the provider.

Writing an SMS Mailing

Click New. The form is much shorter than the email form, because a text has no design, no picture and no sender address.

odoo Development

Send. The button that sends the message to everybody on the list. It asks you to confirm first (section 3.4).

Schedule. The button that sends the message later, at a date and a time that you choose.

The status bar. Draft, Sending and Sent show where the mailing is. A mailing that waits for its date shows In Queue.

Title. The name of the mailing for your team. In an email this field is the Subject that the customer reads. In an SMS the customer never sees the title, so use a name that helps you to find the mailing, for example Black Friday SMS coupon.

Recipients. Who receives the text. The default is Mailing List. The other choices are described below.

Mailing Lists. The lists that get the message. You can choose more than one. A person who is on two lists receives the text only once. The count of people is shown next to each list in the drop-down.

The small button with a person and a plus sign. It opens a window to add contacts to the lists that you chose, without leaving the mailing.

The tab SMS Content. The text of the message.

The tab Settings (section 3.3).

The text box. Write the message here. A short and clear text is best: who you are, what you offer, and what the person must do. Odoo shows no counter on this form, so keep the text under 160 characters and use the window Send SMS (section 4) when you want to check the length.

The smiley icon. It opens a list of emojis. Remember that an emoji makes the whole message a Unicode message, with a limit of 70 characters for each part.

The magic wand, named Insert Field. It adds a field of the recipient to the text. For example, if you add the name of the person, each person reads their own name. Odoo replaces the field when the message is sent. Use it only with fields that every recipient has, because an empty field leaves a hole in the text.

Odoo checks that the text is not empty. If you type only spaces, a red message says that your SMS text message must include at least one character that is not a space.

Links in the text. If you write a web address, for example https://www.example.com/showroom, Odoo changes it to a short address of your own Odoo site, like http://yoursite/r/L1Z, when the text is sent. A short link saves characters and lets Odoo count the clicks. Write the full address, starting with http:// or https://, so that Odoo knows it is a link.

Who can receive the text? Click the field Recipients to choose the kind of record. SMS Marketing can send to any record that has a phone number, not only to a mailing list.

odoo Development

Here the drop-down offers Applicant, Contact, Employee, Event Registration, Journal Entry, Lead, Mailing Contact, Point of Sale Order and more under Search more. The list changes with the apps that you installed. Mailing List is the choice of the lists.

When you choose Contact (the customers of the Contacts app), the line of the lists is replaced by a filter. You see the number of matching records, 435, and the choice Dynamic Lists, the saved filters of the Email Marketing app. Click Add condition to narrow the customers, for example to the customers of one country or one tag. A tick named Exclude Blacklisted Recipients, which is on by default, removes the blacklisted numbers.

odoo Development

Odoo reads the number from the phone field of the record. For a customer it is the Phone field. For a lead it is the phone or the mobile of the lead. A record without a number is skipped.

The Settings Tab

The tab Settings has the options of the mailing.

odoo Development

Include opt-out link. When it is ticked, Odoo adds a line at the end of each text: STOP SMS: and a link. The person taps the link to stop the texts. In many countries the law says that every marketing text must have a way to stop. These characters are part of the message, so the text gets longer by about 40 to 50 characters. Keep this in mind when you count the length. Here it is ticked.

Campaign. The campaign of this mailing. The field shows only when Mailing Campaigns is ticked in the settings. Choose one so that the results are added to the results of the campaign (section 7). The arrow at the end of the field opens the campaign.

Medium. How the message is sent. It is filled by Odoo with SMS.

Source. Where the message comes from. Odoo fills Mass SMS. Medium, Source and Campaign are the three UTM labels. They are also used to track the people who come to your website from the link of the text.

Responsible. The person in charge of the mailing. It is you by default.

Keep Archives. It is ticked by default for an SMS. Odoo then keeps one record for each message that was sent (see section 3.7). If you untick it, Odoo deletes these records after sending. The results, which are in the traces, stay.

Allow A/B Testing. Sends two or more versions of the same text to small parts of the list, then sends the best version to the rest of the list. Tick the box, and the following fields appear.

The percent (10 by default). The share of recipients that receive this version in the test. The sentence on the right says it again: A sample of 10% of recipients will receive this version.

A/B Testing Version. A name for this version, for example Short text.

Winner Selection. How the best version is chosen. Highest Click Rate means that Odoo picks the version that got the most clicks. Manual means that you choose the winner yourself. For SMS there is no option based on opened messages, because Odoo cannot know if a text was read.

Send Final On. The date when Odoo chooses the winner and sends it to the rest of the list. It is hidden when the winner selection is Manual.

Create an Alternative Version. Makes a copy of the mailing, where you change the text. Each version is a separate mailing in the same campaign.

A/B testing needs a campaign, because the versions are compared inside the campaign. We showed the A/B screen with the box ticked and then unticked it, so the draft is a normal mailing.

Sending the Mailing

There are two ways to send, and both begin with a button at the top left of the form.

Send. Click it, and a window asks Ready to unleash your text messages? It says that the texts will arrive on all the phones. Click Send to all to go on, or Discard to stop. We clicked Discard.

odoo Development

Schedule. Click it, and a window asks When do you want to send your mailing? Choose the date and the time in the field Send on and click Schedule. The status changes to In Queue, and the form shows the sentence This SMS marketing is scheduled for and the date. While the mailing is In Queue, a button named Cancel appears, and it stops the mailing.

odoo Development

After Send, Odoo puts the mailing in a queue, and a scheduled action sends the messages a few moments later. While the messages go out, the form says SMS Text Messages are being processed. When the mailing is queued, it says SMS Text Messages are in queue and will be sent soon.

Before Odoo sends a message to a person, it checks the person. These people are skipped, and each one gets a trace that tells the reason: a person who opted out (Opted Out), a number on the phone blacklist (Blacklisted), a number that was already used in this mailing (Duplicate), a record with no number (Missing Number), and a number that is not valid (Wrong Number Format).

An SMS mailing has no Test button. To test a message, make a small list that has only your own number, and send to it first.

An SMS mailing always goes through the queue. In the Send SMS window of section 4, the button Send now sends the message at once.

After Sending: Reading the Results

Open a sent mailing. The text cannot be changed any more, and the buttons at the top left change to Retry and Duplicate. Smart buttons with the results appear at the top.

odoo Development

Delivered and Failed. The first number is the messages that reached the phones (5 here). The second is the messages that failed (1). Click it to see the people.

Canceled. The share of the messages that Odoo did not send, because the person opted out, was blacklisted or was a duplicate. Here it is 25 percent: 2 people out of 8.

Clicked. The share of the people who tapped a link in the text. Here it is 40 percent. Odoo counts the click even if the person taps the link twice, as one person.

More. A menu with more results (the next picture).

Retry. Sends the failed messages again. Odoo deletes the failed messages and their traces, and puts them in the queue again. Use it after you buy credits or after you correct a wrong number.

Duplicate. Makes a draft copy of the mailing. This is the quick way to send the same text next month.

The status bar shows Sent.

The text. It cannot be changed after the sending.

The button More opens a small menu.

odoo Development

Bounced. The share of the messages that were refused by the mobile network, for example because the number does not exist.

Opportunities, Quotations and Revenues. They show the leads, the quotations and the amount of sales that came from the mailing. They appear when the CRM and Sales apps are installed. This is how you see if a text makes money.

Link Trackers. The links of the text and how many times each was tapped (section 6.2).

A text message has no Opened and no Replied button, because a phone does not tell the sender when a text is read. This is the main difference with the email form.

The Traces: One Line for Each Message

Click Delivered or Failed to see the messages one by one. The list opens grouped by the status of the message.

odoo Development

The columns are the Recipient (the person), the Email (empty for a text, because the number is not shown here), the day and hour in Sent On, the Status, the Failure type, Opened On and Clicked On. A click on a line opens the person. These are the statuses.

Outgoing. The message waits in the queue.

Processing. The message is being given to the provider.

Sent. The provider has the message, and the phone did not confirm it yet.

Delivered. The phone of the person received the message.

Opened. In an SMS this means that the person tapped a link. Odoo marks the message as opened and as clicked, and the time is in Clicked On. The group named Opened in the picture is the people who tapped the link.

Bounced. The network said that the number is not valid or cannot be reached.

Exception. The message could not be sent, for example because the credits were finished.

Cancelled. Odoo did not send the message, because of a rule such as opt-out or blacklist.

When a message fails, the column Failure type says why. The most common reasons are in the next list. You do not need to learn them all, because the list shows only the ones that happened.

Missing Number and Wrong Number Format. The record has no phone number or the number is written in a way that Odoo cannot read. Correct the number and use Retry.

Insufficient Credit and Unregistered Account. The credits finished, or the account is not registered (section 1.2).

Country Not Supported and Country-specific Registration Required. The provider does not send to that country, or the country asks for an extra registration of the sender before you can send.

Server Error and Database non active. A problem of the provider, or the database that is used is not allowed to send. Try again later.

Blacklisted, Duplicate and Opted Out. The rules of Odoo that were explained in section 3.4.

Expired, Not Delivered, Invalid Destination, Not Allowed and Rejected. The answers of the mobile network, for example because the phone was off for too long or the number does not exist.

Authentication Error, Incorrect callback URL, Missing From Number and From / To identic. The problems of a Twilio account: wrong codes, no sender number for the country, or the same number for the sender and the receiver.

The SMS Log in the Technical Menu

When Keep Archives is ticked, Odoo keeps the text that it sent to each number. An administrator can see them in Settings > Technical > Phone / SMS > SMS. The menu Technical shows only when the developer mode is on (add ?debug=1 to the web address). Only users of the group Role / Administrator can open this list.

odoo Development

Each line is one message to one number: the Number, the Customer, the Failure Type and the SMS Status. The status has the values In Queue (waits to be sent), Processing, Sent (the provider has it), Delivered, Error and Cancelled. The buttons at the end of a line act on one message: Retry sends a failed message again, Cancel stops a message that is in the queue or in error, and Send Now sends a message of the queue at once.

odoo Development

The form of a message shows the Contact, the Number, the Failure Type and the text. The example above is a message that failed because the credits were finished. The same menu has the item SMS Templates (section 5) and the item Phone Blacklist (section 6.1).

Odoo cleans this list by itself. A scheduled action deletes the messages that were sent, and it removes the other old messages that are no longer in the queue after some months. The traces and the results of your mailings stay.

WhatsApp