簡體   English   中英

無法在 azure 中部署的 java 應用程序中發送 email

[英]Unable to sent email in java application deployed in azure

我們有一個 java 應用程序,我們已將其部署在 azure 雲上。 email 發送的功能在 azure 上部署之前工作正常。 但是當我們在 azure 上部署應用程序時,該功能無法正常工作。 我們也對本地機和虛擬機的google賬號做了兩步驗證。 但在虛擬機或 azure 雲上這些功能不起作用。 任何人都有解決方案,請幫助我。 謝謝先進

簡短回答:端口 25 被 Azure 阻塞。

這是為了防止濫用服務和阻止垃圾郵件發送者等。

對於以下所有示例,該過程僅適用於虛擬機和 VM 規模集資源(Microsoft.Compute/virtualMachines 和 Microsoft.Compute/virtualMachineScaleSets)。 Sending email on Port 25 is unsupported from all Azure Platform-as-a-Service (PaaS) resources, including Azure App Service and Azure Functions.

查看這篇文章的詳細信息: https://docs.microsoft.com/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM