Email and SMS

Text your customers from one call, and let billing email itself

Send a text message from your backend without holding a Twilio credential. Sign-in and billing emails go out for you, under your own sender name.

Email is included. SMS needs an API key with the sms.send scope and an SMS number enabled for your app.

What you get

Emails sent for you

Sign-in verification and MFA codes, and from billing: invoices, receipts, payment reminders, and billing portal sign-in links.

Your sender name and domain

Set the from name and address customers see. To send from your own domain, create a DNS TXT record and verify it in the console.

SMS from your backend

One call sends a text message. TenancyEngine uses the credential for your app, so your code never holds a Twilio key.

A number just for your app

Switch on a dedicated number for each app, so one app’s sending reputation never affects another’s. Prefer your own Twilio account? Connect it, and TenancyEngine checks the credentials before saving them.

Replies and opt-outs

Inbound replies arrive at your webhook endpoint as sms.inbound_message events, and opt-out keywords such as STOP are detected for you.

Guard rails on sending

The sms.send scope is never part of a broader scope, so you grant it on purpose. Sending is rate limited for each recipient.

In your code

These calls come from the TenancyEngine.Sdk package on NuGet. Every capability is also a REST API, so any language that can make an HTTPS request can use it.

Send a text message
// Send a text message. The Twilio credential never reaches your app.
var result = await te.SendSmsAsync(
    applicationId,
    "+15551234567",
    "Your appointment is tomorrow at 9:00.",
    "appointment-reminder",
    recipientUserId.ToString(),
    ct);

if (!result.Success)
    logger.LogWarning("Text message not sent: {Code}", result.ErrorCode);

What to know before you build on it

  • The SDK does not send arbitrary email from your app today. TenancyEngine sends the sign-in and billing emails listed above.
  • A dedicated SMS number is a real phone number with a recurring cost, so it is a deliberate switch. If you connect your own Twilio account, Twilio bills you directly.
  • Business texting in the US and Canada requires carrier registration, which you complete in the console.

Questions developers ask

Do I need a Twilio account?

No. Enable a dedicated number for your app and TenancyEngine manages the Twilio account for it. If you already have Twilio, you can connect your own account instead.

Where do replies to my text messages go?

To any webhook endpoint of your app that subscribes to sms.inbound_message or to all events. The delivery is signed like every other webhook.

Can billing emails come from my own domain?

Yes. Add your sending domain, create the DNS TXT record the console shows, and verify it. Until then, emails use the platform domain.

Try it on the free Starter plan

One app and up to five customer workspaces. Upgrade when you need more.

Request access