legacy-knowledge-base
公開されました Jul. 2, 2025

SMTPホスト例外に接続できませんでした

written-by

Pooja Bhambani

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • メール送信時に「unable to send message」というエラーが発生する:Could not connect to SMTP host: smtp.office365.com, port:587 "が発生する。
  • 再現するための手順
    1. Liferay でメール通知を送信するために outlook メールサーバーを設定する
    2. メール送信時に、以下のようなエラーが発生することがありました。
    unable to send message: Could not connect to SMTP host: smtp.office365.com, port: 587
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

Environment

  • Liferay DXP 7.3

解決策

  • この問題にはいくつかの異なる原因が考えられるため、まずはメールの設定オプションをよく確認してください。
  • メールサーバー設定の「Manually specify additional JavaMail properties to override above configuration field」 に以下のプロパティを追加し、接続を確立します。
    mail.smtp.socketFactory.port.fallback=true

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base