0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

BuddyPressでユーザにメールが届かないなと思ったときの対処【ユーザ登録後にメールが通知されないケースなど】

Posted at

WordPressのプラグイン、BuddyPressを活用することがあったのですがメールが届かない事象がおきたので対処方法について記載します。

BuddyPressでユーザにメールが届かないなと思ったときの対処

BuddyPressでユーザ登録をすると、
buddypress_resistration.jpg

となってアクティベーション用のURLが記載されたメールが届くようなのですが、いっこうに届かない事象が発生しました。

管理者ページには新規登録があったことは確認できるのですが、登録したユーザに対してのメールだけがどうやら届いていない模様…

【解決方法】functions.phpにメール設定を追加

ということで解決方法を探していたら、GitHubに同様の課題に関してのスレッドがありましたのでその内容をシェア致します。(参考ページ: No WP new user emails being sent – buddypress issue

見出しのとおりですが、functions.phpに以下を追加するだけで解決しました。

functions.php
add_filter('bp_email_use_wp_mail', function () {
    return true;
});

改めて試験的にユーザ登録をしてみると、無事アクティベーションコードが送られてきました。

ひとまず一件落着。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?