Preparing Resend for sending

This page walks you through getting the API key for the API key field in Register an Email Account when you use Resend as your sending server. It also walks you through verifying the domain you'll use for your from address.

Resend doesn't have mail accounts. Instead, you add a domain you own and get it verified, and then you can send mail from addresses on that domain. Once dailycloset.com is verified, you can send from both orders@dailycloset.com and support@dailycloset.com. You don't need to create a separate mailbox for each address.

You need a domain to start

Resend can't send mail until you have at least one verified domain. You can't sign up and use it without a domain.

A domain here means an address you've bought, like dailycloset.com. If you don't have one yet, you need to buy a domain first. You also need to be able to add settings in the management screen of the place you bought it from. You add those settings in the steps below.

Verify your domain and get an API key in Resend

Sign in to Resend, then work through the two steps below in order.

1

Add and verify your domain

  1. Click Domains in the left menu.

  2. Click Add domain.

    The Domains screen in Resend. It's empty, with no domains added yet, and there's an Add domain button at the top right and in the middle

  3. In the Name field, enter your domain.

  4. Click Add domain.

    The Add domain screen. A domain is entered in the Name field, and a preview of the sending address appears on the right

  5. Add the values shown under DNS Records, exactly as they appear, in the management screen of the place you bought your domain from.

    GroupWhat it does
    DKIMLets the receiving side check that mail sent from this domain is genuine
    SPFTells receivers that Resend is allowed to send mail for this domain
    DMARCVerification works without it. The screen also marks it Optional
  6. Wait until Status changes to Verified.

    The domain screen after verification. Status is Verified, and each row under DNS Records is also marked Verified

A DNS record is a setting that specifies which servers a domain is connected to. Add the records and wait, and Resend checks them automatically. When the check is done, the notice "Your domain is ready to send emails" appears. Once you reach this screen, you can send mail from any address on that domain.

2

Create an API key

The API key is the value WEEGLOO uses to sign in to Resend.

  1. Click API keys in the left menu.

  2. Click Create API key.

    The API keys screen in Resend. It's empty, with no keys created yet, and there's a Create API key button at the top right and in the middle

  3. In Name, enter a name you'll recognize later (for example, Weegloo mail).

  4. For Permission, select Sending access.

  5. Leave Domain set to All domains.

  6. Click Add.

    The Add API Key window. A name is entered in Name, Permission is set to Sending access, and Domain is set to All domains

  7. Copy the key that appears and keep it for later.

Once you close the window, you can't see the key again

If you lose the key, you'll have to create a new one. Don't set Permission to Full access. Sending access is all you need to send mail. This key is stored in WEEGLOO and used from then on.

Enter the API key and from address in WEEGLOO

You now have a verified domain and an API key. Go back to Register an Email Account.

When you select Resend for Provider, SMTP server is filled in with smtp.resend.com automatically. Username is fixed to resend, which is the same for everyone who uses Resend. You can't change these two fields.

For Port, you can choose 587 or 465. Choose 587.

The values you prepared on this page go in the two fields below. Fill in Name and Sender name as the registration steps describe.

FieldValue
API keyThe API key you created
From addressAn address on the domain you verified. If your domain is dailycloset.com, enter something like orders@dailycloset.com

The Create Email Account screen. At the top right are the Email Account guide link, List, and the Create button. Under Basic information, the required Name field contains "Order Notifications" (19 / 64). Under Connection settings, Provider shows a note to verify a domain in Resend first, since the account can't be registered without a verified domain; Resend is selected in the dropdown below it. SMTP server shows smtp.resend.com, and Port has 587 selected out of 587 and 465. Username is fixed to resend. The required API key field has a How to create one link beside it and a masked value, with a note that it is the Resend API key, which starts with re_. Under Sender information, a note says the address must be at a domain you verified in Resend and any other address is rejected, with a Learn more link; Sender name contains "Clothing store support" and the required From address contains "orders@dailycloset.com". At the bottom, the How the sender appears to recipients example shows From "Clothing store support orders@dailycloset.com"

If you asked an AI agent to handle the integration and it told you to get an API key, paste the API key and your from address into the chat and pick up where you left off. The agent takes care of the rest of the setup.

What to do next

  • Register an Email Account: Covers the steps for registering a sender with the values you got.
  • Sending email: Covers, with diagrams, what you register in an Email Account and how mail goes out from the sender you registered.
  • Script: Covers how to build the task that actually sends mail to customers from the sender you registered.
  • Email Account: Covers the request and response formats and field specs for registering and managing a sender directly from a program.