WP-Members は WordPressネイティブの関数 wp_mail を使用して全てのメールを送信します。 これは WordPress のネイティブ機能であり一般に堅牢性が高いです。
プラグインがメールを生成すると、wp_mail() 関数がメールの送信を試みます。
その後も多くの処理が行われるので、メールがwp_mail() に引き渡されたからといってそれが「送信された」ことにはなりません。メールが送信サーバーと受信サーバーの両方で拒否される場合もあります。
共有ホスティングを使用している場合は、共有サーバー上にある他の数百のアカウントによるメールキューの影響を受けて送信されない可能性もあります。共有ホスティングのインスタンスでは、通常だとメールが生成されてキューに送信された後はメールを追跡する方法がありません。
またWordPress サイトが1種類の電子メール (新規登録やパスワードのリセットなど) の送信に成功したからといって、全ての電子メールが送信処理をクリアできるわけではないことにも注意してください。送信ホスト (および受信ホスト) は、送信される全ての電子メールを精査してそれらがルールを順守しているかどうかを確認します。 したがって、ある種類の電子メールは正常に送信されたのに他の電子メールは送信されない場合もありえます。
原文を見る
WP-Members uses the native WP function wp_mail to send all emails. This is a native WordPress function and is generally robust.
Once the plugin generates an email, the wp_mail() function will attempt to send it.
A lot of things can happen after that so just because it was handed off by wp_mail(), that does not equate to being “sent.” Email can be rejected by both the sending server and the receiving server.
If you are on shared hosting, you are likely at the mercy of an email queue with several hundred other accounts also on your shared server. In a shared hosting instance, there is usually no way for you to track an email once it is generated and sent to the queue.
It should also be noted that just because your WP site successfully sends one type of email (such as a new registration or password reset), that does not mean ALL emails will make it through the process. Your sending host (and the receiver) will evaluate every email that goes out to check whether it meets their rules. Therefore, you may find that one type of email goes through fine while other emails are not being sent.
https://rocketgeek.com/plugins/wp-members/docs/faqs/email-troubleshooting/
SMTPアカウントを使用する
SMTP アカウント経由で電子メールを送信するように WordPress を設定することをお勧めします。これにより電子メール送信に関するほとんどの問題が解決されるだけでなく、Web サーバーに依存するのではなく電子メール サーバー上の実際のアカウントを介して電子メールが送信されるためより堅牢なプロセスが提供されます。電子メールを追跡できるようになり、送受信に成功する可能性が高くなります。この推奨事項はWordPress 開発者でありなおかつ WordPress サイトを運営している私の長年の経験に基づいています。(私は WordPress Core のメールコンポーネントのコンポーネントメンテナー の 1人としてもしばらく過ごしたので、wp_mail() と phpMailer がどのように機能するかについてはかなり精通しています。)
私の意見としては、SMTP アカウントを使用して送信する最良の方法は、アカウントの詳細と認証情報を wp-config.php ファイルの一部として設定することです。その方法に関する記事と、使用できるGithub のサンプルコードがあります。これができない場合、またはこの種のカスタマイズを適用することに抵抗がある場合は、SMTP アカウントを通じて wp_mail() を実行するために利用できるプラグインが多数あります。私のお勧めはWP Mail SMTP です。長い間使われ続けており、優れた成功実績を持っています。
SMTP を使用すると送信側と受信側の両方でほとんどの問題が解決します。
原文を見る
It is recommended that you configure WordPress to send email through an SMTP account. Not only will this solve most email sending issues, it will also give you a more robust process because you will be sending email through an actual account on an email server instead of relying on your webserver. You will be able to track emails and they will have a higher probability of being sent/received. This recommendation is based on my many years as both a WordPress developer as well as running WP sites. (I also spent some time as one of the component maintainers of the Mail Component in WordPress Core, so I am pretty well versed in how
wp_mail()andphpMailerwork.)In my opinion, the best method to send using an SMTP account is to set up your account details and credentials as part of your wp-config.php file. I have an article on how to do that as well as some example code you can use on Github. If you cannot do this or are uncomfortable applying this kind of customization, there are a lot of plugins available to run wp_mail() through your SMTP account. I recommend WP Mail SMTP. It has been around a long time and has a good track record of success.
Using SMTP will solve most problems, both on the sending and receiving end.
https://rocketgeek.com/plugins/wp-members/docs/faqs/email-troubleshooting/
SMTPを使用できない場合
SMTP を使用できない場合は、Web スクリプト経由で送信される電子メールがどのように機能するかを理解しておく必要があります。あなたが独自のハードウェアを実行している場合を除き、ホストはおそらく実際の電子メール アドレスから電子メールを送信することを要求するでしょう。 WordPress はデフォルトで wordpress@yourdomain.com から送信します。 これがアカウントの実際のアドレスではない場合、ホストがこれを許可しない可能性があります。
ホストがメールエイリアス(別名アドレス)を許可している場合でも、受信側がエイリアスを拒否することを選択する場合があります。特定のアカウントのスパムフィルターに到達する前であっても。
最良の結果を得るには、実際のアドレスを使用して送信してください。 WP-Members には、メール設定で「差出人」アドレスと「差出人名」を設定できます。 サイトのドメインと一致するドメインを使用した実際のアドレスを使用してください。
上記と同様に、一部のホストと受信側サーバーは電子メールに適切なヘッダーが必要です。WordPress は、デフォルトではメールヘッダーに「差出人」アドレスを適用しません。WP-Members には送信メール用のフィルターがあり、ヘッダーに「差出人」アドレスを追加できます。
電子メールをスパムではなく正規の電子メールのように見せるもう1つのテクニックは、「差出人」アドレスが「送信」アドレスと同じであることを確認し、リターンパスをメッセージの送信元アドレスと同じになるようにすることです。
原文を見る
If you cannot use SMTP, you will need to understand something about how emails sent via web scripts work. Unless you are running your own hardware, your host will likely require that you be sending email from an actual email address. WordPress will by default send from wordpress@yourdomain.com. It is possible that if this is not an actual address on your account, your host may not allow this.
Even if your host does allow email aliases, the receiver may choose to reject it even before it gets to any spam filter on your specific account.
For best results, send using an actual address. WP-Members has a setting for you to set the “from” address and “from name” in the email settings. Use an actual address using a domain that matches your site domain.
Similar to the above, some hosts and receivers require that an email have proper headers. WordPress does not apply “from” addresses in the email header by default. WP-Members has a filter for the emails that it sends so you can add a “from” address to the header.
Another trick that helps make your email look less like spam and more like a legitimate email is to make sure the “from” address is the same as the “send” address so that the return path is the same as the address the message is coming from.
https://rocketgeek.com/plugins/wp-members/docs/faqs/email-troubleshooting/
その他のリンク/情報
wp_mail() の詳細、トラブルシューティング方法、SMTP の設定方法については、私の個人ブログのこの投稿を参照してください。
サポートサイトの購読者は、プラグインの Send Test Emails 拡張機能にアクセスしてプラグインで用意された各電子メールのテストを送信できるようになります。 この拡張機能はダウンロード エリアから入手してください。
原文を見る
For more information on wp_mail(), how to troubleshoot, and how to set up SMTP, please see this post on my personal blog.
Subscribers to the support site have access to the Send Test Emails extension for the plugin which will allow you to send tests of each of the plugin’s emails. Get this extension from the downloads area.
https://rocketgeek.com/plugins/wp-members/docs/faqs/email-troubleshooting/