Twilio를 통한 SMS 발송

Twilio 소개

Twilio is a third-party provider that enables you to send SMS messages to your clients. Odoo provides an easy way to use this service within your Odoo apps.

왜 필요할까요?

Although Odoo already comes with an out-of-the-box (IAP) solution for SMS messages, it might not work in some countries with stricter legal requirements. Currently, Odoo registers itself when possible to avoid extra setup for its customers, however in some countries that is not enough and the client itself must do it. This can be done through Twilio.

Twilio 계정 설정하기

By creating a Twilio account, you will be able to create a virtual phone number from which you will be able to send SMS messages. These cost credits that are to be bought on Twilio, not Odoo.

  1. Twilio 로 이동

  2. Twilio 회원 가입 후 계정 생성하기

  3. Within your Twilio account, you can create multiple accounts (e.g. one for testing, one for each sub-company, etc.)

  4. 신규 계정 생성

    1. 이름을 입력한 후 Twilio 를 유형으로 선택하세요

    2. 청구 국가 를 선택한 후 새 계정 만들기 를 클릭하세요

    3. 다양한 옵션을 필요에 따라 선택하기

      • Twilio 제품 의 경우 SMS 를 선택합니다

      • For How to build with Twilio, select With no code at all

      • 목표 에서 :guilabel:`타사 통합`을 선택합니다

    4. Twilio 시작하기 를 클릭합니다

  5. You account is now created, and you should arrive on your Dashboard

  6. Go to Phone Numbers ‣ Manage ‣ Buy a number

  7. Buy a number (it is a paying service, but you should have received some credits to start with)

  8. 현황판 페이지 하단으로 돌아가기

  9. 계정 SID인증 토큰 을 복사합니다

중요

In case of a testing account, you will only be able to send SMS to phones that you have verified within Twilio’s console.

참고

Sending SMS to some countries (such as the US or Canada) might require a registration. This can only be done by you, and not by Odoo. Please check out Twilio’s Help Center.

Odoo에서 Twilio 사용 설정하기

  1. Twilio SMS 모듈(sms_twilio) 설치

  2. In Odoo, go to Settings ‣ General Settings ‣ Contacts ‣ Send SMS, select Send via Twilio option, and save your change.

  3. Go back to that option, and click Configure Twilio Account

  4. 복사한 자격 증명을 알맞게 붙여넣기

  5. 번호 다시 로드 클릭

  6. Your newly bought phone number should appear in the list

  7. You can use the Test Number field to send an SMS

You can have multiple numbers (for instance once per country, or one per campaign), in that case, you can reorder the numbers. By default, when sending an SMS to a client, Odoo will select the number whose country is the same as the client. If none matches, Odoo will use the first number available from the list respecting the order you have chosen.