Hi every one: It will be kind of you if you can help me with this problem: I have prepared an applet that can send Emails , it gets the recipients and sends a mail to them , this applet works in my editor which is codeguide3.0 , and sends the mails through a specific SMTP server (in this case : 213.29.206.2) , note that this is not my computer IP , and its just a server , but when I run the applet in my browser ( IE 6.0) it runs the applet but doesn't send the mails , it just shows the interface and when I click the send button , it seems that it has sent the mail but it doesn't actually ... where is the problem , can you help me ? the way I use the applet in my browser is making an html file and put my applet in its directory and write the applet tag and its required parameters , and run the html file , it shows the textfields and does all the actions but doesn't send the mail . it will be really kind of you if you can help me :) thank you so much ... sincerely yours : Ali
I think this is a security violation for an applet -- your editor is either running it as an application or with looser security restrictions on applets than the browser will have. I think you can configure your browser's security to allow this sort of potentially dangerous behavior, but if you want this applet to work from some web page for any browswer that happens along, you may be out of luck. However, you could look into making it a signed applet, an application or using something like Java WebStart. Also, maybe this works if the SMTP server is the same as the one where the applet is running (I haven't tried this, it is just a guess based on how file access works for applets).