Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can an applet send email?

applet email send
0
10 Posted

How can an applet send email?

0

The simplest way to answer this question is to tell you to write a CGI program which sends email, and then refer you to the previous question to learn how to communicate with the CGI program. There really isn’t any other reliable, cross-platform way to send email. The problem is that email programs are platform dependent. The Simple Mail Transport Protocol is an Internet standard that you may be able to use some of the time. The basic idea is to open a socket to the SMTP port, 25, on the web server, and send your email through the server. However not all web servers, especially those based on Macs or Windows NT, run SMTP servers, and an applet can’t open sockets to other hosts. Even if you do have SMTP software running on your web server, the applet may be behind a firewall that disallows outgoing connections to port 25 on hosts outside the firewall.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.