Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21

Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33

Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21

Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33
YouTubeに旅動画配信中だよぉ〜

お問い合わせメールが届かない⁉︎迷惑メールに入る問題を根本解決!Contact Form 7 × エックスサーバー完全設定ガイド


Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21

Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33

WordPressでブログやサイトを作ったら、まず設置したいのが「お問い合わせフォーム」。 しかし、定番プラグインの「Contact Form 7」を入れただけでは、「テストメールが届かない」「自動返信メールが迷惑メールに入ってしまう」というトラブルが多発します。

実は近年のGmailなどのセキュリティ強化により、初期設定のままではメールが弾かれてしまうのが原因です。

この記事では、お問い合わせフォームの作成から、メールの到達率を100%に高めるためのエックスサーバーでのDNS(SPF/DMARC)設定まで、実体験を元にノンストップで解説します!

フォーム作成の基本:Contact Form 7の導入

まずは定番の無料プラグイン「Contact Form 7」をインストールして有効化します。

企業名・担当者名を追加するカスタマイズ

ビジネス用途やBtoBを意識する場合、デフォルトの項目に「企業名」と「担当者名」を追加するのがおすすめです。

【フォームタブの記述例】

<p>企業名<br> [text company-name] </p>

<p>ご担当者名(必須)<br> [text* your-name] </p>

【重要】メールタブの本文にも追加を忘れずに!

フォーム側を増やしたら、必ず「メール」タブと「メール(2)」タブのメッセージ本文にも[company-name] や[your-name]を書き加えないと、届くメールに反映されないので注意しましょう。

【落とし穴】メールが届かない・迷惑メールに入る原因

テスト送信をしてみたら「送信完了になるのにメールが届かない」「迷惑メールフォルダに潜っていた」。これはWordPressあるあるです。

原因は、WordPress標準のメール送信機能(PHP mail)のセキュリティが弱く、受信側のサーバー(Gmail等)から「怪しいなりすましメール」と判定されているためです。

これを解決するには、「送信元メールアドレスを独自ドメインにする」ことと、「正しいルートでメールを送信する」設定が必要です。

解決策①:WP Mail SMTPの導入とエックスサーバー連携

メールの信頼性をプロレベルに引き上げるため、プラグイン「WP Mail SMTP」を導入します。

ここでGmailなどのアドレスを使ってしまうとエラーになるため、事前にエックスサーバーの管理画面で「独自ドメインのアドレス(例: info@〜)」を新規作成しておきます。

WP Mail SMTPのその他のSMTP設定値

  • メーラー: その他のSMTP

  • SMTPホスト: sv****.xserver.jp(※サーバーパネルに記載のサーバー名)

  • 暗号化: SSL

  • SMTPポート: 465

  • Authentication(認証): ON

  • SMTPユーザー名: 新規作成した独自ドメインのメールアドレス

  • SMTPパスワード: そのメールアドレスのパスワード

📌 Contact Form 7側の「送信元」も統一する

Contact Form 7の「メール」タブ・「メール(2)」タブにある「送信元」フィールドも、すべてこの新しく作った独自ドメインのアドレスに書き換えます。 ※記述例:サイト名 <info@yourdomain.com> (必ず半角の < > でアドレスを囲むこと!)

解決策②:【重要】エックスサーバーでのDNSレコード(SPF/DMARC)の強化

WP Mail SMTPを設定しても、まだGmailの厳しいフィルターに引っかかることがあります。そこで、エックスサーバー側で「このメールは本物です」という証明書(DNSレコード)を強化します。

① SPFレコードの書き換え(到達率アップ)

エックスサーバーの「DNSレコード設定」から、種別 TXTv=spf1 から始まる行を探し、以下のように書き換えます。

  • 変更前: (初期設定の記述)

  • 変更後: v=spf1 +mx +a +include:xserver.jp ~all

末尾を ~all に変更することで、「このサーバー以外からの送信は偽物」と強く断言し、Gmail等での迷惑メール誤判定を劇的に減らせます。

② DMARCレコードの追加(セキュリティ強化)

同じく「DNSレコード追加」タブから、以下のレコードを新規追加します。

  • ホスト名: _dmarc (アンダーバーを忘れずに)

  • 種別: TXT

  • 内容: v=DMARC1; p=none;

これでWP Mail SMTPのテスト送信で「Success!」が表示され、警告がすべて消えれば設定完了です!

まとめ:信頼されるお問い合わせフォームの完成!

一連の設定を行うことで、

  1. ユーザーが入力しやすいフォームの完成

  2. 自動返信メールが確実に相手の受信トレイに届く安心感

  3. 独自ドメインメールによるサイトの信頼性向上

という、完璧な状態を作ることができました。 少し手順は多いですが、一度設定してしまえばずっと安心してブログ運用ができるようになります。メール不達に悩んでいる方はぜひ試してみてください!

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21

Warning: Undefined array key 3 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30

Warning: Undefined array key 4 in /home/reverseaging/yuyafreedom.com/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33