# How do I create a sender / from address?

> You do not pre-create senders in MailBlastr — any address on a verified domain works as a from. Use the Name <you@domain.com> format.

There is **no separate "sender" object** to create in MailBlastr. Unlike platforms that make you register and verify each individual from address, MailBlastr verifies at the **domain** level. Once a domain is verified, **any address on it** can be used as the `from` of an email or campaign — no extra setup per address.

## How it works

1. **Verify your domain once** — Add your domain under Domains and publish its SPF/DKIM/DMARC records. See [Managing domains](https://www.mailblastr.com/docs/domains/managing).
2. **Pick any address on it** — After the domain is verified, `hello@`, `receipts@`, `news@`, `support@`, or any other mailbox on that domain is a valid `from`. You do not create them anywhere first.
3. **Send** — Put the address in the `from` field. MailBlastr checks the domain part is one of your verified domains and sends.

## The from format

The `from` field accepts either a bare address or a friendly **display name** with the address in angle brackets:

```text
Acme <hello@yourdomain.com>   ← display name + address (recommended)
hello@yourdomain.com          ← bare address
```

MailBlastr extracts the address from inside the `<…>` and checks that its **domain** (`yourdomain.com`) is verified for your account. A subdomain of a verified domain also works.

**Node.js**

```js
import { MailBlastr } from 'mailblastr';

const mb = new MailBlastr('mb_xxxxxxxxx');

const { data, error } = await mb.emails.send({
  "from": "Acme Support <support@yourdomain.com>",
  "to": ["customer@example.com"],
  "subject": "We got your message",
  "html": "<p>Our team will reply shortly.</p>"
});
console.log({ data, error });
```

**Ruby**

```ruby
require "mailblastr"

Mailblastr.api_key = "mb_xxxxxxxxx"

Mailblastr::Emails.send({
  "from": "Acme Support <support@yourdomain.com>",
  "to": [
    "customer@example.com"
  ],
  "subject": "We got your message",
  "html": "<p>Our team will reply shortly.</p>"
})
```

**PHP**

```php
$mailblastr = Mailblastr::client('mb_xxxxxxxxx');

$mailblastr->emails->send([
  'from' => "Acme Support <support@yourdomain.com>",
  'to' => [
    "customer@example.com"
  ],
  'subject' => "We got your message",
  'html' => "<p>Our team will reply shortly.</p>"
]);
```

**Python**

```python
import mailblastr

mailblastr.api_key = "mb_xxxxxxxxx"

mailblastr.Emails.send({
  "from": "Acme Support <support@yourdomain.com>",
  "to": [
    "customer@example.com"
  ],
  "subject": "We got your message",
  "html": "<p>Our team will reply shortly.</p>"
})
```

**Go**

```go
import "github.com/shekhu10/mailblastr-sdks/mailblastr-go"

client := mailblastr.NewClient("mb_xxxxxxxxx")

params := &mailblastr.SendEmailRequest{
    From:    "Acme <hello@yourdomain.com>",
    To:      []string{"delivered@example.com"},
    Subject: "hello world",
    Html:    "<p>it works!</p>",
}
sent, err := client.Emails.Send(params)
```

**Rust**

```rust
use mailblastr::{Mailblastr, CreateEmailBaseOptions};

let mb = Mailblastr::new("mb_xxxxxxxxx");

let email = CreateEmailBaseOptions::new(
    "Acme <hello@yourdomain.com>",
    ["delivered@example.com"],
    "hello world",
).with_html("<p>it works!</p>");
let _sent = mb.emails.send(email).await?;
```

**Java**

```java
import com.mailblastr.*;

Mailblastr mailblastr = new Mailblastr("mb_xxxxxxxxx");

SendEmailRequest request = SendEmailRequest.builder()
    .from("Acme <hello@yourdomain.com>")
    .to("delivered@example.com")
    .subject("hello world")
    .html("<p>it works!</p>")
    .build();
mailblastr.emails().send(request);
```

**.NET**

```csharp
using Mailblastr;

IMailblastr mailblastr = MailblastrClient.Create("mb_xxxxxxxxx");

var resp = await mailblastr.EmailSendAsync(new EmailMessage
{
    From = "Acme <hello@yourdomain.com>",
    To = "delivered@example.com",
    Subject = "hello world",
    HtmlBody = "<p>it works!</p>",
});
```

**cURL**

```bash
curl -X POST 'https://api.mailblastr.com/emails' \
  -H 'Authorization: Bearer mb_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
  "from": "Acme Support <support@yourdomain.com>",
  "to": ["customer@example.com"],
  "subject": "We got your message",
  "html": "<p>Our team will reply shortly.</p>"
}'
```

**CLI**

```bash
mailblastr emails send \
  --from 'Acme Support <support@yourdomain.com>' \
  --to 'customer@example.com' \
  --subject 'We got your message' \
  --html '<p>Our team will reply shortly.</p>'
```

> **Warning:** If the `from` domain is not verified you get a `validation_error`: "The domain (…) is not verified." Finish [domain verification](https://www.mailblastr.com/docs/domains/managing) before sending — there is nothing to create on the sender side.

> **Note:** The `from` address does **not** need to be a real, provisioned mailbox in another system — MailBlastr only checks that its domain is verified. That said, we recommend using an address that can actually **receive replies** (or setting `reply_to`) so recipients aren’t writing into a void.

> **Note:** Want replies to go somewhere other than the `from`? Set `reply_to` (a `Reply-To` header). The `from` still controls which verified domain the mail is sent from.
