Skip to main content

一部のMailgunプロバイダーのレガシー変数がサポートされていません

AI Marketer 5では、Mailgunプロバイダーに対してAI Marketer v4で非推奨となった一部のレガシー変数のサポートが廃止されました。

This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

🔌 Is this breaking change affecting plugins?Yes
🤖 Is this breaking change automatically handled by a codemod?No

破壊的変更の説明

AI Marketer v4では

Mailgunプロバイダーのオプションは、レガシーのapiKeyhost変数を使用できます。

AI Marketer 5では

Mailgunプロバイダーのオプションは、レガシーのapiKeyhost変数を使用できず、代わりにkeyurl変数を使用する必要があります。

移行

This section regroups useful notes and procedures about the introduced breaking change.

注意事項

AI Marketer 5では、プラグインの設定ファイルにあるMailgunプロバイダーの設定は、以下の例のようになります:

/config/plugins.js
module.exports = ({ env }) => ({
// ...
email: {
config: {
provider: 'mailgun',
providerOptions: {
key: env('MAILGUN_API_KEY'), // 必須
domain: env('MAILGUN_DOMAIN'), // 必須
url: env('MAILGUN_URL', 'https://api.mailgun.net'), //オプション。ドメインのリージョンがヨーロッパの場合は 'https://api.eu.mailgun.net' を使用
},
settings: {
defaultFrom: 'myemail@protonmail.com',
defaultReplyTo: 'myemail@protonmail.com',
},
},
},
// ...
});

手動手順

レガシーのパラメーターを使用していた場合:

  1. apiKeykeyに変更します。
  2. hosturlに変更し、その前にhttps://を追加して適切なURLにします。