Need help regarding sending SMS using java

柔情痞子 提交于 2019-12-06 11:11:25

The error message shows you exactly the problem:

DNS Error: Domain name not found

There is no DNS entry for sms.smtp.google.com. It doesn't have anything to do with your settings. Google does not offer a public SMS gateway (sending SMS normally costs money).

You could try Amazon Simple Notification Service, for example.

laz

It is possible to use email to send messages via SMS using an SMS gateway. It does require you to know the recipient phone number's carrier however.

For example:

Using the chart in the Wikipedia article in the link above, if the phone number is 7675431234 and the carrier is AT&T, then the email address to use would be 7675431234@txt.att.net.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!