see intermixed
"Nancy Crisostomo Martinez" <[EMAIL PROTECTED]> on 02/19/2002
10:04:16 AM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
cc:
Subject: JavaMail API
Hi!!
About sending a mail using the JavaMail API:
I'm trying to send a mail, but the following exception is still
appeating:
javax.mail.NoSuchProviderException: No provider for Address
type: rfc822
I think this exception occurs bcoz:
1) It cannot read the config files in mail.jar or activation.jar. See if
the app has permissions to do that. Set debugging, notably
java.security.debug, on in your app.
2) You app doesn't have permission to connect to the SMTP/POP3 server. The
policy file below needs to be updated with the SMTP Host name and POP3 host
name. Check with your sys admin or whoever handles the mail server. If you
use Outlook or Netscape Messenger, you could probably figure it out.
RS
But somebody gave me a solution, but I'm having some troubles trying to
apply it:
Does anybody know how to know or get the IP ADDRES of the SMPT server?
Even, I don't know to configure that part (IPADDRESSES of servers) of
the following statements that are supposed to be written in the
tomcat.policy file:
grant {
// following two permissions allow access to default
config files
permission java.io.FilePermission "/path/to/mail.jar",
"read";
permission java.io.FilePermission
"/path/to/activation.jar", "read";
// following to use SMTP
permission java.net.SocketPermission "SMTPHOST:25",
"connect,resolve";
// following to use IMAP
permission java.net.SocketPermission "IMAPHOST:143",
"connect,resolve";
// following to use POP3
permission java.net.SocketPermission "POP3HOST:110",
"connect,resolve";
// following also to use POP3 in pre-JavaMail 1.2
permission java.io.FilePermission "/path/to/pop3.jar",
"read";
// following needed if System.getProperties() is used
permission java.util.PropertyPermission "*", "read,write";
};
Please, I need help!!
Thanks in advance!!
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>