legacy-knowledge-base
公開されました Sep. 10, 2025

Liferayでメール通知を送信するためにoutlookメールサーバーを設定/使用する方法

written-by

Prarthana Jadhav

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

問題

  • Liferay mail configurationでoutlook mailを設定する際に、以下の例外が発生します:

    " Could not connect to SMTP host: smtp.office365.com, port: 587" 
    OR
    ERROR [liferay/mail-1][MailEngine:128] Unable to send message: Exception reading response
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

環境

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2

解像度

  • outlook SMTPを設定する場合は、以下の手順で行います。
    • portal-ext.properties,に以下のプロパティを追加します。

      mail.session.mail.smtp.auth=true
      mail.session.mail.smtp.starttls.enable=true

    • サーバーを再起動し、コントロールパネル-> 設定-> サーバー管理-> メール-> 送信SMTPサーバーの値を追加しました(参考までにスクリーンショットを添付します)。
      Outgoing SMTP Server : smtp.office365.com
      Outgoing Port : 587
      Use a Secure Network Connection : Uncheck

      Provide the outlook credentials
      SMTP.png
    • メール通知のテストを行います。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base