---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://sendcorex.com/llms.txt"
---

Source: https://sendcorex.com/ja/blog/strapi-email-smtp

チュートリアル

# StrapiのSMTPでのメール設定（Nodemailerプロバイダー）

Nodemailerプロバイダーをインストールし、設定ブロックを1つ追加して、管理画面からテストします。

Sendcorexチーム·更新日 2026年11月18日·5分で読めます

## 1. プロバイダーをインストールする

```
npm install @strapi/provider-email-nodemailer
```

## 2. config/plugins.jsを設定する

```
module.exports = ({ env }) => ({
  email: {
    config: {
      provider: 'nodemailer',
      providerOptions: {
        host: 'smtp.sendcorex.com',
        port: 587,
        auth: {
          user: env('SENDCOREX_API_KEY'),
          pass: env('SENDCOREX_API_KEY'),
        },
      },
      settings: {
        defaultFrom: 'Acme <hello@yourdomain.com>',
        defaultReplyTo: 'support@yourdomain.com',
      },
    },
  },
});
```

## 3. 管理画面からテストする

Strapiを再起動し、 **Settings → Email → Configuration** を開いてテストメールを送ります。Users & Permissionsのメール（確認、パスワードリセット）も、SMTPリレー経由で送られるようになります。

## 4. 独自のコードから送る

```
await strapi.plugin('email').service('email').send({
  to: 'user@example.com',
  subject: 'Your order is confirmed',
  text: 'Thanks for your order!',
  html: '<html><body><p>Thanks for your order!</p></body></html>',
});
```

## 5. ドメインを認証する

defaultFromのアドレスは、SPF、DKIM、DMARCが公開されたドメインのものである必要があります。 [SPFジェネレーター](https://sendcorex.com/ja/tools/spf-generator) と [DMARCジェネレーター](https://sendcorex.com/ja/tools/dmarc-generator) でレコードを作成できます。

### このページの内容

数分でStrapiから送信

無料アカウントを作成し、ドメインを認証して、上の設定を貼り付けましょう。

[無料で始める — 月3,000通](https://app.sendcorex.com/authentication/register?appid=smtp)

クレジットカード不要

## 続きを読む

[チュートリアル ### Node.jsでメールを送る方法（NodemailerとREST API） Node.jsからメールを送る2つの方法：SMTP経由のNodemailerか、シンプルなfetch呼び出し。動作するコード、エラー処理、DNS設定付き。 ガイドを読む](https://sendcorex.com/ja/blog/send-email-nodejs) [チュートリアル ### Next.jsからメールを送る（App RouterとRoute Handler） Route Handler、Server Action、React Emailのテンプレート。実際のお問い合わせフォーム、エラー処理、DNS設定付き。 ガイドを読む](https://sendcorex.com/ja/blog/send-email-nextjs) [到達率 ### SPF、DKIM、DMARCの解説 メールと受信箱の間には3つのDNSレコードがあります。それぞれが実際に何を証明するのか、1つ欠けると何が起こるのかを解説します。 ガイドを読む](https://sendcorex.com/ja/blog/spf-dkim-dmarc-explained)

数分でStrapiから送信

無料アカウントを作成し、ドメインを認証して、上の設定を貼り付けましょう。

クレジットカード不要

[無料で始める — 月3,000通](https://app.sendcorex.com/authentication/register?appid=smtp) [料金を見る](https://sendcorex.com/ja/pricing)
