Nomsa Guide
  • 👋About Nomsa
  • Campaign Guide - General
    • 🚀How to send a campaign?
  • Campaign Guide - Email
    • 📧Email Campaigns - Basics
      • Scheduled Sending
      • Bounced Emails and Halted Campaigns
      • Email Statistics
      • Formatting your Message Template
      • Variable Fields
      • Unique URL Link per Recipient
      • Pasting Content from Microsoft Word
      • Manage your Unsubscriptions
      • Understanding Unsubscriptions
    • 🔐Sending Password-Protected Emails
      • Tutorial
  • Campaign Guide - SMS
    • 📲SMS Campaigns - Basics
    • SMS Onboarding Overview
      • How do I send SMS
  • Campaign Guide - Telegram
    • 🤖Telegram Campaigns - Basics
      • Add Telegram Bot Token in Nomsa
      • Instructions for Recipient Onboarding
      • Use the Bot in the Campaign
      • Telegram Formatting
      • Telegram Bot Statistics
  • Api Guide
    • 📖Overview
      • API Response Formats
      • Bearer Authentication
      • Generate your API Key
      • Rotate your API Key
    • 📨Programmatic Email API
      • Custom From Address
      • Tracking Email Status
      • Send Email API
        • From Name and From Address
        • CC and BCC
        • Recipient Blacklist
        • Email Tagging and Classification
        • Email Body
          • Embedding Images
            • Linked Images
            • Content-ID Images
        • Attachments
        • Rate Limit
      • Get Email by ID API
      • List Emails API
    • 📬Programmatic SMS API
Powered by GitBook
On this page
  • From Name vs From Address
  • Changing From Name
  1. Api Guide
  2. Programmatic Email API
  3. Send Email API

From Name and From Address

PreviousSend Email APINextCC and BCC

Last updated 1 year ago

From Name vs From Address

The from field of an email contains from name and from address. This is illustrated in the image below:

If the from field in the JSON body of the API call is omitted:

  1. The from name defaults to Nomsa

  2. The from address defaults to <donotreply@mail.nomsa.gov.kh>

Changing From Name

In our API, the from name of an email can be changed by the API user by modifying the from field in the API call. For example, to use New Product as the from name, the API user could use the following JSON body:

{
    "recipient": "recipient@gmail.com",
    "subject": "Hello I am testing",
    "body": "Thanks for atending, Hope you are doing well.",
    "from": "Nomsa <donotreply@mail.nomsa.gov.kh>"
}

The email recipient will see the following:

📨