Is an SMTP server required to send mail through a web server using the JavaMail API?

Is an SMTP server required to send mail through a web server using the JavaMail API? When I use localhostto send mail, it works, but when I upload it to the server, it does not work and gives an error:

There is no such smtp provider

How can i solve this?

+3
source share
1 answer

An SMTP server should always be able to send emails, for example, since an HTTP server should always be able to send web pages. This is independent of the website and email API you use. The HTTP server is not the same as usual and does not include the SMTP server.

SMTP-, , , - , Gmail, Yahoo .. SMTP- . . - , .

ISP/public , , From , . , SMTP-, Apache James, Java, Microsoft Exchange .

, SMTP-, API JavaMail , , Apache Commons Email.


, -, , - SMTP-. .

+3

Source: https://habr.com/ru/post/1755097/


All Articles