Category: Transactional emails

Send order and password emails via SMTP or API.

  • Transactional vs marketing emails in Sender

    TL;DR: Transactional emails are one-to-one messages your app sends after a user action, like an order confirmation or password reset. Marketing emails promote your brand: campaigns go to many subscribers at once, and automated emails go out when a workflow trigger fires. In Sender, transactional emails send through the API or SMTP from Transactional emails, while marketing emails live in Email campaigns and Automations.

    Where to find it: Transactional emails, Email campaigns and Automations in the left sidebar

    Transactional emails section

    The three email types

    Transactional emailCampaign emailAutomated email
    PurposeShares information the person needsA promotional email, newsletter or updateEngages subscribers over time
    ExamplesReceipts, order confirmations, password resets, shipping notificationsNewsletters, sales, product launchesWelcome series, abandoned cart, birthday emails
    Sent toOne person at a timeA group or segment at onceEach subscriber when they hit the trigger
    Started byYour app, through the API or SMTPYou, now or on a scheduleA workflow trigger
    Where in SenderTransactional emailsEmail campaignsAutomations
    Needs consent and unsubscribe linkUsually notYesYes

    Campaigns and automated emails are both marketing emails.

    Transactional emails

    Transactional emails are triggered by something a person did, like buying, signing up or resetting a password. The content is specific to them and that event, and they expect it.

    In Sender, go to Transactional emails. You’ll find Metrics, Logs, Templates and Setup instructions. Each template goes through Settings → Design → API, then your app sends it with an API access token or SMTP credentials. See SMTP vs REST API.

    Transactional email setup instructions
    Transactional email API step

    Campaign emails

    Campaign emails are the same message sent to many subscribers at once. Go to Email campaigns, click New campaign, pick your groups, design the email, then send or schedule it. There’s no API step. See create a campaign.

    Email campaigns list
    Campaign creation flow

    Automated emails

    Automated emails are marketing emails sent by a workflow, like a welcome email after signup or a reminder after an abandoned cart. They’re personal and timely, but still marketing, so the same consent and unsubscribe rules apply. See create your first email automation.

    Where to track each type

    • Transactional: Transactional emails → Metrics opens the Transactional overview with sent, delivered, opens and clicks. Logs opens the Latest events log with each event’s recipient, subject and template.
    • Campaigns: the Dashboard and each campaign’s report.
    • Automations: the stats on the Automations list and inside each workflow.

    Transactional stats don’t show up in campaign reports. They’re tracked separately.

    Transactional events log
    Campaign report

    Which one should you use?

    • The email is triggered by one person’s action and contains their details? Use a transactional email.
    • Same message to many people at once? Use a campaign.
    • Marketing message timed to each subscriber’s behavior? Use an automation.

    Tips for transactional and marketing emails

    • Keep transactional emails free of heavy promotion. Adding lots of marketing can make them count as marketing emails under laws like CAN-SPAM and GDPR.
    • Get consent for marketing emails and always include an unsubscribe link.
    • Monitor transactional logs to catch bounces fast. Track open rate and click rate mostly for marketing emails.

    If something doesn’t work

    • Transactional emails don’t show in campaign reports. That’s expected. Check Transactional emails → Metrics and Logs.
    • You can’t send a transactional email. You haven’t set up an API access token or SMTP credentials yet. Go to Setup instructions.
    • Not sure which type an email is. If it’s about one person’s action and contains their data, it’s transactional. Otherwise, it’s marketing.

    Transactional vs marketing FAQs

    Can I use the same template for both?

    No. Transactional templates are made under Transactional emails → Templates, and campaign designs under Email campaigns.

    Do campaigns need the API?

    No. Campaigns send straight from the dashboard.

    Are automated emails transactional?

    No. Automated emails from workflows are marketing emails, even when a subscriber’s action triggers them.

    What to do next

    Create a template under Transactional emails → Templates → New email, or create an API access token in Account settings → API access tokens → Create API token. Then set up your first transactional email, or create a campaign. For the basics, read what transactional emails are.

  • Transactional sender identity and domain requirements

    TL;DR: Your transactional sender identity is the From name and email address on your emails. The address must be on a domain you verified in Sender, with SPF, DKIM and DMARC records in place. Add the domain under Account settings → Domains.

    Where to find it: Account settings → Domains

    What you need

    RequirementWhy
    A domain you own, with access to its DNSTo add the records Sender gives you
    Ownership confirmedProves the domain is yours
    SPF, DKIM and DMARC recordsLet inboxes check the email really comes from you
    A From address on that domainSender rejects addresses on unverified domains

    Free addresses such as Gmail or Yahoo can’t be authenticated, so use an address on your own domain.

    Verify your sending domain

    1. Go to Account settings → Domains and click Add domain.
    2. Enter your domain, such as yourdomain.com, and click Next.
    3. Copy the DNS records Sender shows and add them at your domain provider.
    4. Return to the Domains page and click Recheck DNS records.
    Authentication checkmarks and the Recheck DNS records button highlighted on the Domains page in Sender

    The table shows the result. A green checkmark under Ownership confirmed means the domain is yours. The three checkmarks under Authentication stand for SPF, DKIM and DMARC. All three should be green.

    DNS changes can take up to 48 hours to spread. If a checkmark is missing, wait and click Recheck DNS records again. For the record details, see SPF, DKIM and DMARC setup.

    Set the sender in a template

    1. Go to Transactional emails → Templates.
    2. Open the dropdown next to a template and click Edit.
    3. On the Settings step, fill in From name and Sender’s email address.
    4. Click Save and continue.
    From name and Sender's email address fields highlighted on the Settings step of a Sender transactional email

    Set the sender in an API request

    When you send without a template, add a from object to the request to https://api.sender.net/v2/message/send:

    "from": {
      "email": "[email protected]",
      "name": "Your Company"
    }
    

    The email must be on a verified domain. The name is what recipients see in their inbox.

    Set the sender over SMTP

    Set the From address and display name in your application’s email settings. Use an address on your verified domain, and connect to smtp.sender.net with your SMTP user. See SMTP vs REST API.

    Choose a good sender address

    • Use a name people recognize, such as your company or product name.
    • Pick an address that matches the email, such as orders@ or support@.
    • Avoid noreply@ where you can. Replies help recipients and your reputation.
    • Consider a subdomain, such as mail.yourdomain.com, to keep transactional and marketing reputation apart.

    Check that it works

    Send a test email from the template’s API step, or send a request with your token. Then open Transactional emails → Logs and confirm the email is listed. In the inbox, check that the From name and address are correct.

    Fix sender and domain problems

    ProblemCauseFix
    The template won’t saveThe sender address is on an unverified domainVerify the domain, or use an address on a verified one
    A checkmark stays greyThe DNS record is missing, wrong or not yet spreadCompare the record with Sender’s values, wait, then recheck
    Emails land in spamSPF, DKIM or DMARC isn’t passingGet all three Authentication checkmarks green
    422 error on the from fieldThe address is invalid or its domain isn’t verifiedUse a valid address on a verified domain
    Two SPF records existA domain can have only one SPF recordMerge them into a single record

    Sender identity FAQs

    Can I send from more than one domain?

    Yes. Add each domain under Account settings → Domains and verify it. Then use any address on those domains.

    Do I need a separate domain for transactional emails?

    No. One verified domain works for campaigns and transactional emails. A subdomain is optional.

    Do I have to verify each email address?

    No. Once the domain is verified, any address on it can be used as the sender.

    What to do next

    With your domain ready, continue to creating transactional templates or setting up transactional emails.

  • Transactional email rate limits

    TL;DR: Transactional email rate limits cap how many API requests you can make per minute. Each response shows your limit and what is left in its headers. If you go over, the API returns 429 and tells you how long to wait.

    Where to find it: Rate limits have no settings page. They appear in the response headers of every API request.

    How rate limits work

    Sender counts API requests per minute. The limit applies to both sending endpoints:

    • POST https://api.sender.net/v2/message/send
    • POST https://api.sender.net/v2/message/{id}/send

    Every response includes three headers:

    HeaderWhat it tells you
    X-RateLimit-LimitThe most requests you can make per minute
    X-RateLimit-RemainingThe requests left in the current minute
    X-RateLimit-ResetThe date and time the limit resets

    Your own limit is the value of X-RateLimit-Limit. Send one request and read the header to see it.

    Check your limit

    1. Go to Transactional emails → Setup instructions and copy the example for your environment.
    Setup instructions tabs highlighted on the Sender transactional emails page
    1. Send one test email with your API access token.
    2. Read the response headers. With curl, add -i to print them.
    3. Note the three X-RateLimit values. X-RateLimit-Remaining drops by one with each request.

    Handle a 429 error

    When you pass the limit, the API returns 429 Too Many Requests. The response includes a Retry-After header with the number of seconds to wait.

    1. Stop sending when you receive 429.
    2. Wait for the time given in Retry-After.
    3. Retry the same request.
    4. If it fails again, wait longer before each new attempt. This is called exponential backoff.

    Don’t retry straight away. Repeated requests during a 429 keep you limited for longer.

    Rate limits over SMTP

    SMTP has no rate limit headers. When you send too fast through smtp.sender.net, the server answers with a temporary failure code. Most mail libraries retry these on their own. If yours doesn’t, add the same wait-and-retry logic.

    Send high volumes without hitting the limit

    • Use a queue. Put emails in a queue and let a worker send them at a steady pace.
    • Spread requests across the minute. Avoid sending in one burst.
    • Watch X-RateLimit-Remaining. Slow down as it gets close to zero.
    • Pause until the reset. When nothing is left, wait until the time in X-RateLimit-Reset.
    • Put urgent emails first. Send password resets before less urgent notifications.

    Confirm emails were sent

    Go to Transactional emails → Logs. Each accepted email is listed in the Latest events log. An email that got a 429 isn’t there, because the request was never accepted.

    Latest events log for Sender transactional emails with the Emails sent events highlighted

    Fix rate limit problems

    ProblemCauseFix
    429 on every requestYour application sends faster than the limitAdd a delay or a queue between requests
    429 continues after waitingThe retry came before Retry-After endedWait the full time, then retry
    No X-RateLimit headersYour HTTP client hides response headersPrint the full response, for example with curl -i
    Emails arrive late at peak timesRetries are stacking upSpread sending evenly, or contact support about your limit
    SMTP emails are deferredA temporary failure for sending too fastLet your mail library retry, or lower the send rate

    Rate limit FAQs

    What is my rate limit?

    It is the number in the X-RateLimit-Limit header of any API response.

    Are rate limits the same as my monthly email limit?

    No. Rate limits control how fast you send. Your plan controls how many emails you can send in total. See daily sending limits.

    Can my limit be raised?

    Contact Sender support and describe your volume.

    Does a 429 mean the email is lost?

    Sender didn’t accept that request, so the email wasn’t sent. Your application has to retry it.

    What to do next

    Track what was delivered in monitoring transactional delivery. For other errors, see common transactional issues.

  • Common transactional email issues

    TL;DR: Most transactional email issues come from five causes: a bad API token, an invalid request, wrong SMTP details, an unauthenticated domain or rate limits. Start with the response code your application received, then check Transactional emails → Logs.

    Where to find it: Transactional emails → Logs

    Find your issue

    What you seeMeaningGo to
    401 UnauthorizedThe API token is missing or invalidFix a 401 error
    422A field is missing or invalidFix a 422 or 400 error
    400 Bad RequestThe request can’t be readFix a 422 or 400 error
    429 Too Many RequestsYou sent too fastFix a 429 error
    SMTP authentication or timeout errorWrong credentials, port or TLS settingFix SMTP connection errors
    Accepted but not in the inboxDomain authentication or a bounceFix emails that don’t arrive

    Fix a 401 error

    1. Go to Account settings → API access tokens.
    2. Check that the token your application uses is still listed. A deleted token stops working at once.
    3. If it’s missing, click Create API token and update your application.
    4. Send the token in this header: Authorization: Bearer YOUR_TOKEN.
    API access token row highlighted on the API access tokens page in Sender

    Check for a space or line break copied with the token. That also causes a 401.

    Fix a 422 or 400 error

    A 422 response contains an errors object that names each invalid field. Read it first.

    EndpointRequired fields
    https://api.sender.net/v2/message/sendfrom (with email and name), to (with email) and subject
    https://api.sender.net/v2/message/{id}/sendA valid template ID in the URL and a to object

    For a 400 Bad Request, read the message field in the response. The usual cause is invalid JSON, such as a missing comma or quote.

    Fix a 429 error

    You passed the per-minute request limit. Wait for the number of seconds in the Retry-After header, then retry. To prevent it, slow down as X-RateLimit-Remaining gets close to zero. See transactional email rate limits.

    Fix SMTP connection errors

    1. Go to Transactional emails → Setup instructions → SMTP.
    2. Compare your application’s settings with the page:
    SettingValue
    Serversmtp.sender.net
    Port587, 2525 or 25
    AuthenticationPLAIN or LOGIN over TLS
    Username and passwordAn active SMTP user from this page
    Add SMTP user button highlighted on the SMTP tab of the Sender setup instructions

    If the connection times out, your host may block the port. Try 2525. If authentication fails, click Add SMTP user and use the new credentials.

    Fix emails that don’t arrive

    Check domain authentication

    1. Go to Account settings → Domains.
    2. Find your sending domain. The Authentication column should show three green checkmarks: SPF, DKIM and DMARC.
    3. If one is missing, correct the DNS record and click Recheck DNS records.
    Authentication checkmarks and the Recheck DNS records button highlighted on the Domains page in Sender

    Emails from an unauthenticated domain are often rejected or sent to spam. See sender identity and domain requirements.

    Check for bounces

    1. Go to Transactional emails → Logs.
    2. Open the Event type filter and select Bounces.
    3. Check the Recipient and Subject columns to see which emails failed.
    Bounces selected in the Event type filter of the Sender transactional logs

    If an email has no event at all, Sender never accepted it. Go back to the response code in your application.

    Check the trend in Metrics

    Go to Transactional emails → Metrics and look at Hard bounces, Soft bounces and Spam reports.

    • Hard bounces rising: your application is sending to invalid addresses. Validate addresses at signup.
    • Soft bounces rising: often temporary. Watch whether they clear.
    • Spam reports rising: recipients don’t expect the email. Review the sender name, subject and content.

    Transactional issue FAQs

    My email was sent but shows the wrong content. Why?

    The variables in the request didn’t match the template. See using liquid variables.

    Why did my attachment not arrive?

    The file URL must be public and under 25 MB. See attachments and size limits.

    The test email works, but live emails fail. Why?

    The test is sent from the dashboard, so it skips your application’s token and request. Check both.

    What to do next

    Set up monitoring for transactional delivery to catch problems early. If the issue remains, contact Sender support with the response code and the time of the request.

  • Liquid variables in Sender transactional emails

    TL;DR: Liquid variables add dynamic content and personal details to transactional emails, like {{ firstname }} or {{ order_id }}. Insert them from the Custom fields menu in your template’s subject or design, or type them in custom HTML. Then pass each value in the variables object of your API request. You can also show different content with {% if %} logic.

    Where to find it: Transactional emails → Templates

    Transactional email templates list

    How Liquid variables work

    A variable is a placeholder in double curly brackets. When your app sends the email, Sender swaps it for the value you pass in the API request.

    • Format: {{ variable_name }}
    • Allowed characters: letters, numbers and underscores
    • Can’t start with a number or an underscore
    • Case-sensitive: {{ VAR }} and {{ var }} are different

    Built-in variables include email, phone, firstname, lastname, birthday and unsubscribe_link, plus account fields like account.title, account.address, account.city, account.zip_code, account.state, account.country and account.signature. You can also make up your own, like {{ order_id }}.

    Add variables to a template

    Step 1: Add them to the subject or preview text

    Open a template or click New email. On the Settings page, click Custom fields in the Email subject or Email Preview text field and pick a variable. For example: Your order is confirmed, {{ firstname }}.

    Step 2: Add them to the email body

    Click Save and continue and pick a design option.

    • Drag and drop builder: click into a Paragraph or Headline block, then click Custom fields in the text toolbar.
    • Custom HTML: type the variable, like <p>Hello, {{ firstname }}!</p>. This also works in a Custom HTML block inside the drag and drop builder.
    Custom fields menu in the text toolbar

    Step 3: Preview and test

    Click Preview (the eye icon) to see desktop and mobile versions. Variables show as {{ variable_name }} until real data is passed. To see real values, fill in the Personalization fields on the API page and click Send test email.

    Template preview with variables

    Pass values through the API

    The API page has a ready-made snippet in JavaScript, PHP or Python. The endpoint is https://api.sender.net/v2/message/{template_id}/send, where the template ID is shown on that page. Every variable used in the template appears there as a Personalization field, so you know what to send.

    Put the values in the variables object of the JSON body:

    {
      "recipient_email": "[email protected]",
      "variables": {
        "firstname": "John",
        "order_id": "12345",
        "subject": "Your order has shipped"
      }
    }
    

    Without a template, you can send the HTML and variables in one call:

    {
      "to": {"email": "[email protected]", "name": "John"},
      "subject": "Order confirmation",
      "html": "Hello {{ firstname }}, your order {{ order_id }} is confirmed.",
      "variables": {"firstname": "John", "order_id": "12345"}
    }
    

    Show conditional content with if/else

    Liquid logic lets one template fit different people:

    {% if subscription_level == 'premium' %}
      You're enjoying all premium features.
    {% else %}
      Upgrade your subscription to access premium features.
    {% endif %}
    

    Pass subscription_level in variables, like any other value.

    Transactional data vs custom fields

    Transactional attributes are event data. Custom fields, like company or job title, hold one value that rarely changes. Transactional data changes with every event: order numbers, amounts, products, dates, order status, invoice numbers and payment methods. That’s why it’s best passed as variables with each send, not stored as a custom field.

    Common uses:

    • Ecommerce: order confirmations, shipping updates and receipts
    • SaaS: renewals, plan upgrades and account alerts
    • Services: appointment and booking reminders

    Tips for Liquid variables

    • Match names exactly. firstname in the template must be firstname in the request.
    • Send a value for every variable, even if it’s an empty fallback.
    • Test with sample data before going live.

    If something doesn’t work

    • The variable shows as raw text. The name in variables doesn’t match the template, like first_name instead of firstname.
    • The variable is blank. The key is missing from the request, or its value is empty.
    • The Custom fields button is missing. Click into a text block first to open the text toolbar.
    • The template breaks. A tag isn’t closed. Check every {{ has a }} and every {% if %} has an {% endif %}.

    Liquid variables FAQs

    Can I use my own variable names?

    Yes. Type any name in {{ }} in custom HTML. It appears as a Personalization field on the API page.

    Can I use variables in the subject line?

    Yes. Pick one from Custom fields or type it in the subject or preview text.

    Why does the preview show {{ firstname }} instead of a name?

    Preview doesn’t have data. Send a test email with Personalization values to see the real result.

    What to do next

    Finish your setup in set up transactional emails, or get delivery events with webhooks.

  • Transactional email attachments and size limits

    TL;DR: Transactional email attachments are added in the API request, not in the template editor. Put each file in the attachments object as a filename and a public HTTPS URL. Each file can be up to 25 MB.

    Where to find it: Transactional emails → Templates → open a template → API step

    Attachment rules at a glance

    RuleValue
    Where attachments are setThe attachments object in your API request
    Format"filename.ext": "https://file-url"
    Maximum size25 MB per file
    File locationA public HTTPS URL that needs no login
    Supported typesPDF, Office documents (DOCX, XLSX, PPTX), images (PNG, JPG, GIF), ZIP and other common types
    Number of filesSeveral. Add one line per file

    Add an attachment to an API request

    1. Go to Transactional emails → Templates.
    2. Open the dropdown next to your template and click Edit.
    3. Continue to the API step. The API example on the right already contains your template ID and an attachments object.
    API step of a Sender transactional email with the API example code
    1. Copy the example into your application.
    2. Replace the placeholders in attachments with your own filenames and URLs:
    "attachments": {
      "invoice.pdf": "https://yourdomain.com/files/invoice.pdf",
      "receipt.pdf": "https://yourdomain.com/files/receipt.pdf"
    }
    
    1. Send the request to https://api.sender.net/v2/message/{id}/send. Replace {id} with the template ID.

    The key is the filename the recipient sees. The value is where Sender downloads the file when the email is sent. A successful response returns "success": true and an emailId.

    To send without a template, use https://api.sender.net/v2/message/send and add the same attachments object next to from, to, subject and the content.

    Attachments over SMTP

    SMTP doesn’t use the attachments object. Attach files in your application’s mail library, which sends them as standard MIME parts. See SMTP vs REST API.

    Test attachments before going live

    The Send test email box on the API step sends the template without attachments. To check that files arrive, send a real API request to your own address and open the email.

    Keep attachments small and safe

    • Link instead of attaching when a file is large. A download link keeps the email light and loads faster.
    • Compress PDFs and images before hosting them.
    • Use unguessable URLs for private files such as invoices, because the URL has to be public.
    • Generate personal files first. URLs in attachments are static. Create each recipient’s file, host it, then pass its URL in that recipient’s request.
    • Avoid risky file types. Many mail servers block executable files.

    Large emails are also more likely to be delayed or rejected by receiving servers, even under the 25 MB limit.

    Fix attachment problems

    ProblemCauseFix
    The attachment is missingThe URL isn’t public, or needs a login, cookie or allowed IPHost the file at an HTTPS URL anyone can open
    422 validation errorattachments is an array or has the wrong structureSend an object with filename keys and URL values
    The file is rejected for sizeIt is over 25 MBCompress it, or link to it in the email body
    The filename looks wrongThe name comes from the key, not the URLSet the key to the name you want, with its extension, such as "report-2026.pdf"

    Attachment FAQs

    Can I add attachments in the drag & drop editor?

    No. The editor handles design only. Attachments are passed in the API request at send time.

    Can each recipient get a different file?

    Yes. Attachments belong to the request, not the template. Change the attachments object for each request.

    Can I attach files to regular email campaigns?

    Not directly. See attach files to emails for the options.

    What to do next

    Build the email itself in creating transactional templates, and fill in personal details with liquid variables.

  • Monitoring transactional email delivery

    TL;DR: Monitor transactional email delivery in two places. Transactional emails → Metrics shows totals and trends. Transactional emails → Logs shows what happened to each email. Add a webhook to get bounce alerts in real time.

    Where to find it: Transactional emails → Metrics, and Transactional emails → Logs

    Which page to use

    You want toUse
    See totals and trends over timeMetrics
    Find out what happened to one emailLogs
    Be told about bounces as they happenWebhooks

    Check totals in Metrics

    1. Go to Transactional emails → Metrics. The Transactional overview opens.
    2. Pick a period with the date range picker, such as Last 7 days, Last 30 days or a custom range.
    3. Choose Hourly, Daily, Weekly or Monthly to change the detail of the chart.
    4. Compare Total emails sent with Total delivered. A gap between them means bounces or rejections.
    5. Check Hard bounces, Soft bounces and Spam reports below the chart.
    Event type, Domain and Campaign filters highlighted on the Transactional overview in Sender

    Narrow the numbers with filters

    FilterWhat it does
    Event typeShows only the events you tick: Emails sent, Opens, Clicks, Bounces, Unsubscribes or Spam reports
    DomainLimits the numbers to one domain. Search with Find by domain
    CampaignLimits the numbers to one transactional template. Search with Find by campaign

    Combine filters to find patterns, such as bounces for one template or one domain.

    What each metric means

    MetricMeaning
    Total emails sentEvery email Sender attempted to send in the period
    Total deliveredEmails accepted by the recipient’s mail server
    Total opensOpens, counted with a tracking pixel
    Total clicksClicks on tracked links
    UnsubscribesRecipients who opted out
    Hard bouncesPermanent failures, such as an address that doesn’t exist
    Soft bouncesTemporary failures, such as a full mailbox
    Spam reportsRecipients who marked the email as spam

    For a deeper look at the numbers, see transactional email analytics.

    Find a single email in Logs

    1. Go to Transactional emails → Logs. The Latest events log opens.
    2. Type a recipient’s address or a subject in the Search bar.
    3. Narrow the list with the Event type, Domain and Campaign dropdowns, or change the date range.
    4. Read the row: Event, Recipient, Subject, Template and Date / time.
    Event type filter highlighted above the Latest events log for Sender transactional emails

    Click Clear filters to start again. Use the View dropdown at the bottom to change how many rows are shown.

    You can also jump from Metrics to a filtered log. Click the arrow next to a metric, such as Hard bounces →.

    Get bounce alerts with a webhook

    1. Go to Account settings → Webhooks.
    2. Click Add webhook. On an empty page the button reads Add your first webhook.
    3. Enter your endpoint in the URL field.
    4. Choose the bounces/new topic and save.
    Add webhook button highlighted on the Webhooks page in Sender account settings

    Sender now sends a request to your endpoint each time an email bounces. Use the Signing secret at the bottom of the Webhooks page to check that requests really come from Sender. See webhooks for all topics.

    What to do when numbers look wrong

    What you seeLikely causeWhat to do
    Delivered is much lower than sentBounces or rejectionsFilter Logs by Bounces and check the addresses
    Hard bounces are risingInvalid addressesValidate addresses in your application before sending
    Soft bounces repeat for one domainA temporary block or full mailboxesFilter by Domain and watch whether it clears
    Spam reports are risingUnexpected or unclear emailsCheck your sender name, subject and domain setup
    An email is missing from LogsThe request was never acceptedCheck the API response in your application
    Opens show zeroThe recipient’s email client blocks imagesRely on delivered and clicks instead

    Monitoring FAQs

    How fast do events show up?

    Events appear in Logs shortly after they happen. Opens and clicks are added when the recipient acts.

    Can I export the logs?

    See exporting reports for what can be exported.

    How long are logs kept?

    Change the date range to look back. The retention period isn’t shown in the dashboard.

    What to do next

    If emails fail, work through common transactional issues. To understand bounce types, read soft vs hard bounces.

  • Set up transactional emails in Sender

    TL;DR: Transactional emails are one-to-one messages your app sends after a user action, like a password reset, OTP or order confirmation. To set them up, verify your sending domain, create an API access token or an SMTP user, then send a test and check it in Transactional emails → Logs. Transactional emails are available on every Sender plan, including Free.

    Where to find it: Transactional emails in the left sidebar

    Transactional emails menu

    What’s in the Transactional emails section

    PageWhat it’s for
    MetricsThe Transactional overview: sent, delivered, opens, clicks, bounces and spam complaints
    LogsThe Latest events log: every event, filterable by event type, domain and campaign
    TemplatesReusable designs for receipts, resets and other messages
    Setup instructionsCode snippets and SMTP credentials
    Transactional overview page

    Before you start

    • Verify your sending domain with SPF, DKIM and DMARC. The “from” address of every transactional email must use this domain. See SPF, DKIM and DMARC setup.
    • Decide how your app will send: the transactional email API (code) or SMTP relay (any app or CMS with mail settings). See SMTP vs REST API.

    Set up transactional emails

    Step 1: Create an API access token

    1. Go to Account settings → API access tokens and click Create API token.
    2. Choose Forever as the validity, so your emails don’t stop when a token expires.
    3. Click Create and copy the token right away. It’s shown once.
    Creating an API access token

    Step 2: Pick an integration

    Go to Transactional emails → Setup instructions. Choose a tab: curl://, Laravel, php, node or SMTP.

    Setup instructions tabs

    With the API (cURL, Laravel, PHP or Node.js), copy the snippet and replace YOUR_TOKEN_HERE with your token. A quick cURL test:

    curl "https://api.sender.net/v2/message/send" \
      -X POST \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_TOKEN_HERE" \
      -d '{
        "from": {"email": "[email protected]", "name": "Your brand"},
        "to": {"email": "[email protected]", "name": "John"},
        "subject": "Hello from Sender!",
        "html": "Hello, and happy sending!"
      }'
    

    With Laravel, install the package, run the installer and set your environment variables:

    composer require sendernet/sender-transactional-php
    php artisan sender:install
    
    SENDER_API_KEY=your_api_key
    MAIL_MAILER=sender
    

    Then use Laravel’s mail features as usual.

    With plain PHP, install an HTTP client and the SDK:

    composer require php-http/guzzle7-adapter nyholm/psr7
    composer require sendernet/sender-transactional-php
    
    use SenderNet\SenderNet;
    use SenderNet\Helpers\Builder\EmailParams;
    use SenderNet\Helpers\Builder\Recipient;
    
    $sender = new SenderNet(['api_key' => getenv('SENDER_API_KEY')]);
    
    $emailParams = (new EmailParams())
        ->setFrom('[email protected]')
        ->setFromName('Your brand')
        ->setRecipients([new Recipient('[email protected]', 'User')])
        ->setSubject('Welcome')
        ->setText('Thanks for signing up!');
    
    $response = $sender->email->send($emailParams);
    

    With SMTP, open the SMTP tab, click Add SMTP user, enter a username and click Create. Save the password, because it’s shown once. Then enter these settings in your app:

    SettingValue
    Serversmtp.sender.net
    Port587 (recommended), port 2525 or 25
    EncryptionTLS / STARTTLS
    AuthenticationPLAIN or LOGIN
    Username and passwordFrom your SMTP user

    Port 465 isn’t supported. From the SMTP list, you can edit an SMTP user, regenerate a password or delete one you don’t need.

    Step 3: Send a test and check the logs

    Send a test email to an address you can check. Then go to Transactional emails → Logs and find it in the Latest events log with the right recipient and subject. Filter by event type (sent, opens, clicks, bounces, unsubscribes, spam complaints), search by email, domain or campaign, and pick a date range.

    Test email in the Latest events log
    Date range picker in the transactional email logs

    Use transactional templates

    Templates let you change the design and copy without touching your code.

    1. Go to Transactional emails → Templates and create or open a template.
    2. Complete the Settings, Design and API steps.
    3. In the API step, copy the example for JavaScript, PHP or Python. It already contains the template’s campaign ID. Replace PLACE_YOUR_API_TOKEN_HERE with your token.
    4. To test, enter your email address on the template overview and click Send.
    Sending a test of a transactional template

    Add personal details like names and order numbers with Liquid tags, like {{ firstname }}. See transactional variables.

    Full API reference: api.sender.net, including sending without a template and sending with a template.

    Attachments and sending to several people

    • Attachments: add files by HTTPS URL in an attachments object, like "invoice.pdf": "https://yourdomain.com/files/invoice.pdf". PDFs, Office files, images and ZIP files work. Files can be up to 10MB and are virus-scanned.
    • Several people: send one API call per person for personal emails. If you put several people in the same “to” field, they see each other’s addresses.

    What each plan includes

    All plans, including Free, get the API and SMTP, templates and Liquid, real-time analytics, domain authentication, unlimited sending domains, TLS encryption and automatic bounce and complaint handling.

    PlanEvent webhooksTeam membersLog and bounce retentionDedicated IP
    Free111 dayNo
    Standard and prepaid credits531 dayNo
    ProfessionalUnlimited105 days1 included
    EnterpriseUnlimitedUnlimited30 days1 included, plus SSO

    See webhooks to get event notifications in your own system.

    Tips for transactional emails

    • Use a Forever token for live apps so sending doesn’t break when a token expires.
    • Use port 587 with STARTTLS. Many hosts block port 25.
    • Keep the “from” address on your verified domain.
    • Respect the rate limit. Retry on 429 and 500 error codes after a short wait.

    If something doesn’t work

    • 401 Unauthorized. The header must read Bearer plus a space and your token. Check the token hasn’t expired or been regenerated.
    • 422 “From email must be verified”. Use an address on your verified domain.
    • 422 “Content required”. Add html, text or a template ID.
    • 422 “Campaign not found”. Check the campaign ID in your template’s API step.
    • SMTP connection refused or timing out. Use smtp.sender.net on 587 with TLS. Cloud hosts often block port 25.
    • Python SMTP returns “550 Unable to parse msg”. Build the message with as_bytes(policy=email.policy.SMTP) and send it with sendmail(), not send_message(). Use a full email address in “From”, not the SMTP username.
    • The email isn’t in Logs. The token or credentials are wrong, or the recipient address is invalid.
    • The recipient doesn’t get it. They may have bounced, unsubscribed or made a spam complaint before. Check the logs.

    Transactional email FAQs

    Can I send transactional emails without the API?

    Yes. Use SMTP with an SMTP user from Setup instructions → SMTP.

    Are transactional emails included in the Free plan?

    Yes. Every plan includes them. Plans differ in webhooks, users, log retention and dedicated IPs.

    Which SMTP port should I use?

    Port 587 with STARTTLS. Ports 2525 and 25 also work, but 465 doesn’t.

    Where do I find my API access token later?

    You can’t. It’s shown once. Create a new one in Account settings → API access tokens.

    What to do next

    Personalize your messages with transactional variables, or learn when to use transactional vs marketing emails. If you are new to the topic, start with what transactional emails are.

  • Create a transactional email template

    TL;DR: To create a transactional email template, go to Transactional emails → Templates and click New email. Complete three steps: Settings, Design and API. The API step gives you the template ID to use in your API requests.

    Where to find it: Transactional emails → Templates → New email

    Before you start

    Verify your sending domain first. Sender won’t save a template whose sender address is on an unverified domain. See sender identity and domain requirements.

    Step 1: Set the template details

    1. Go to Transactional emails → Templates and click New email.
    New email button highlighted on the Templates page for Sender transactional emails
    1. Fill in the Details:
    FieldWhat to enter
    Campaign nameAn internal name, such as “Order confirmation”
    Email subjectThe subject line recipients see
    Email Preview textOptional. The short text shown after the subject in the inbox
    From nameThe sender name recipients see
    Sender’s email addressAn address on your verified domain
    1. Click Custom fields next to the subject or preview text to insert a variable such as firstname.
    2. Under Campaign design, choose the editor: Drag and drop builder, Plain text or Custom HTML.
    3. Turn Enable click tracking on or off.
    4. Click Save and continue.
    From name and Sender's email address fields highlighted on the Settings step of a Sender transactional email
    EditorBest for
    Drag and drop builderBranded emails built from blocks, without code
    Plain textShort system messages, such as a password reset
    Custom HTMLTemplates your developers already coded

    Step 2: Design the email

    Click Edit design. In the drag & drop editor, drag blocks from the Building blocks panel onto the canvas: Headline, Paragraph, Image, Button, Logo, Social and more. Select a block to change its settings in the panel on the right.

    Building blocks panel highlighted in the Sender drag and drop editor for a transactional email

    Add personal details

    1. Double-click a text block to edit it.
    2. Click the Custom fields icon in the toolbar above the text.
    3. Pick a variable. It is inserted as a merge tag, such as {{ firstname }}.
    Custom fields dropdown highlighted in a text block of the Sender drag and drop editor

    Your application supplies the value for each variable when it sends the email. See using liquid variables.

    Preview and test

    Click the Preview (eye) icon to check the desktop and mobile versions. Click Send test email to see the email in a real inbox. Then click Save & continue.

    Step 3: Copy the template ID

    The API step shows the template’s unique ID, a short string such as dN0ol8, inside a ready-made API example. Copy it for your application, then click Done.

    API step of a Sender transactional email with the API example code

    The template is now saved under Transactional emails → Templates.

    Send an email with the template

    Send a POST request to https://api.sender.net/v2/message/{id}/send, with {id} replaced by the template ID.

    Part of the requestPurpose
    toThe recipient’s email address, and optionally their name
    variablesValues for the merge tags, such as "firstname": "Jane"
    text or htmlOptional. Replaces the template content for this send
    headersOptional custom email headers
    attachmentsOptional files. See attachments and size limits

    Copy the exact request from the API example on the API step, so the field names match your account. For the first-time setup, see setting up transactional emails.

    Fix template problems

    ProblemCauseFix
    The template won’t saveThe sender’s domain isn’t verifiedVerify the domain under Account settings → Domains
    No Custom fields icon in the editorThe text block isn’t in editing modeDouble-click the text first
    The email shows {{ firstname }}No value was passed, or the name doesn’t matchMake each key in variables match the tag exactly, for example firstname, not first_name
    The inbox version differs from the previewEmail clients render HTML differentlySend a test email and check it on desktop and mobile

    Transactional template FAQs

    Can I edit a template that is already in use?

    Yes. Open it from the Templates list, change the Settings or Design step and save. Every send after that uses the new version.

    Does the template ID change when I edit the template?

    No. The ID stays the same, so your application keeps working.

    Can I reuse a campaign design?

    Yes, if you choose Custom HTML and paste the HTML of your design.

    What to do next

    Check results in transactional email analytics, and keep an eye on delivery with monitoring transactional delivery.

  • SMTP vs REST API

    TL;DR: SMTP vs REST API comes down to what your application supports. Use the REST API if your code can make HTTP requests. Use SMTP if your CMS or application only has SMTP settings. Both are set up under Transactional emails → Setup instructions.

    Where to find it: Transactional emails → Setup instructions

    SMTP vs REST API at a glance

    REST APISMTP
    Best forCustom applications and modern frameworksWordPress, legacy systems and tools with an SMTP settings panel
    How it connectsHTTPS request to api.sender.netConnection to smtp.sender.net
    CredentialsAPI access tokenSMTP username and password
    Saved templatesYes, by template IDNo. Your application builds the email
    Attachmentsattachments object with file URLsStandard MIME attachments
    ErrorsJSON response with a status codeSMTP reply codes
    Setup effortSome codeFill in server settings

    If both work for you, choose the REST API. Its responses are structured, so problems are faster to find.

    Open the setup instructions

    Go to Transactional emails → Setup instructions. The tabs match the sending methods: curl://, Laravel, php and node use the REST API. The SMTP tab shows the server details and your SMTP users.

    Setup instructions tabs highlighted on the Sender transactional emails page

    Send with the REST API

    1. Go to Account settings → API access tokens and click Create API token. Copy the token and store it safely.
    Create API token button highlighted on the API access tokens page in Sender
    1. In Setup instructions, open the tab for your environment and copy the example.
    2. Send a POST request to https://api.sender.net/v2/message/send with these headers:
    Accept: application/json
    Content-Type: application/json
    Authorization: Bearer YOUR_TOKEN_HERE
    
    1. Add the email to the request body:
    {
      "from": { "email": "[email protected]", "name": "Your Name" },
      "to": { "email": "[email protected]", "name": "Recipient Name" },
      "subject": "Your subject line",
      "html": "<p>Your email content</p>"
    }
    

    A successful request returns a JSON response confirming the email was accepted. To send a saved template instead, post to https://api.sender.net/v2/message/{id}/send. See creating transactional templates.

    Send with SMTP

    1. In Setup instructions, open the SMTP tab.
    2. Click Add SMTP user to generate a username and password.
    Add SMTP user button highlighted on the SMTP tab of the Sender setup instructions
    1. Enter these settings in your application:
    SettingValue
    Serversmtp.sender.net
    Port587 (recommended), 2525 or 25
    AuthenticationPLAIN or LOGIN over TLS
    Username and passwordThe SMTP user you created

    Use port 2525 if your hosting provider blocks port 587.

    Set the sender address

    With the REST API, the sender is the from object in the request. With SMTP, it is the From address your application sets. In both cases the address must be on a domain verified in your account. See sender identity and domain requirements.

    Check that sending works

    Send a test email to an address you can open. Then go to Transactional emails → Logs. The email appears in the Latest events log with its recipient, subject and time.

    Latest events log for Sender transactional emails with the Emails sent events highlighted

    Fix connection problems

    ProblemCauseFix
    401 UnauthorizedThe token is missing, wrong or deletedCreate a new token and send it as Authorization: Bearer
    422 responseA required field is missing or invalidInclude from, to and subject, and read the errors object
    SMTP authentication failsWrong username or password, or no TLSRe-enter the SMTP user’s details and turn on TLS
    SMTP connection times outThe port is blockedSwitch to port 2525
    Sent but not in LogsThe request went to a different account or failedCheck the response code and the token’s account

    SMTP vs REST API FAQs

    Can I use SMTP and the REST API at the same time?

    Yes. They use separate credentials, so one application can send through the API while another uses SMTP.

    Is one method faster?

    The REST API needs one HTTPS request per email. SMTP exchanges several commands per email, so the API is usually quicker at volume.

    Do both methods appear in the same reports?

    Yes. Emails sent either way are listed under Transactional emails → Logs and counted in Metrics.

    What to do next

    Stay within the sending limits with transactional email rate limits. If an email fails, see common transactional issues.