简体   繁体   English

javax.mail.MessagingException:未知的SMTP主机

[英]javax.mail.MessagingException: Unknown SMTP host

I am developing the application which sent mail using JAVA email API. 我正在开发使用JAVA电子邮件API发送邮件的应用程序。 I use the office SMTP server Mail is sent properly in the office network but outside the office network or another data connection mail can not be sent. 我使用办公室SMTP服务器在办公室网络中正确发送了邮件,但在办公室网络之外或无法发送其他数据连接邮件。

It Show the error could not connect to the SMTP host it says unknown SMTP host. 它显示错误无法连接到SMTP主机,并显示未知的SMTP主机。

As you are using office mail id. 当您使用办公室邮件ID时。 Most of the time due to security reason Technical team/Network team disable the outside network. 大多数时候,由于安全原因,技术团队/网络团队会禁用外部网络。 So, you are able to post your main inside the office. 因此,您可以在办公室内发布主邮件。 Please contact your network team, they will give some sort of solution for host configuration. 请联系您的网络团队,他们将为主机配置提供某种解决方案。 Most likely you have a firewall on your machine or on your network that is preventing you from connecting. 您的机器或网络上很可能有防火墙阻止了您的连接。

If also not resolving, please post the screen shot of your error. 如果仍然无法解决,请发布您的错误的屏幕截图。

Thanks, Rakesh 谢谢,Rakesh

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 javax.mail.MessagingException:无法将命令发送到SMTP主机 - javax.mail.MessagingException: Can't send command to SMTP host javax.mail.MessagingException:无法连接到SMTP主机? - javax.mail.MessagingException: Could not connect to SMTP host? Java错误javax.mail.MessagingException:无法连接到SMTP主机: - Java error javax.mail.MessagingException: Could not connect to SMTP host: javax.mail.MessagingException:无法将命令发送到SMTP主机; - javax.mail.MessagingException: Can't send command to SMTP host; javax.mail.MessagingException:无法连接到 SMTP 主机:smtp.gmail.com,端口:465; - javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; javax.mail.MessagingException:无法连接到 SMTP 主机:smtp.gmail.com,端口:587 - javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 587 发送邮件错误,javax.mail.MessagingException:无法连接到SMTP主机:本地主机,端口:25; - Sending mail error, javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; javax.mail.MessagingException:无法连接到SMTP主机:<主机名>端口:25响应:554 - javax.mail.MessagingException: Could not connect to SMTP host : <host name> port : 25 response: 554 javax.mail.MessagingException:无法连接到SMTP主机:103.12.134.112,端口:25; - javax.mail.MessagingException: Could not connect to SMTP host: 103.12.134.112, port: 25; 通过Java发送电子邮件-javax.mail.MessagingException:无法连接到SMTP主机:localhost,端口:587; - Sending emails through Java - javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 587;
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM