No classpath......
Existe um modo mais fácil de enviar e-mail por java (caso não exista
arquivos em anexo) doque usando
o pacote javamail.....
É só usar sockets......
Rodolfo Ricci
Petrolina PE
Quintino I. S. Neto wrote:
> Bom dia a todos,
>
> Estou usando o tutorial sobre JSP que peguei em
> http://www.jspbrasil.com.br:8080
>
> Na classe Email.java dá erro porque, eu acho que falta da API JavaMail.
> Estou baixando Javamail-1_2.zip de
> http://www.javasoft.com/products/javamail/index.html.
>
> Gostaria de saber, onde coloco essa API para poder importar ?????
>
> RESPONDAM DIRETO PRA EU !!!
>
> Grato
>
> PS. se quiser ver o erro está abaixo:
> ====================================
> Quintino Izidio dos Santos Neto
> Analista de Sistemas - TNS II
> Embrapa Gado de Corte
> Rodovia BR-262 km 4 - Caixa Postal 154
> CEP.: 79002-970 - Campo Grande - MS - BRASIL
> Fone: (067) 768-2171 - Fax: (067) 768-2150
> E-Mail: [EMAIL PROTECTED]
> HP: www.cnpgc.embrapa.br/~quintino
> ====================================
>
>
> C:\resin-1.2.3\doc\examples\Email.java:5: <identifier> expected
> import.java.util.*;
> ^
> C:\resin-1.2.3\doc\examples\Email.java:20: ';' expected
> mailProps.put("mail.smtp.host", mailServer)
> ^
> C:\resin-1.2.3\doc\examples\Email.java:3: package javax.mail does not exist
> import javax.mail.*;
> ^
> C:\resin-1.2.3\doc\examples\Email.java:4: package javax.mail.internet does
> not exist
> import javax.mail.internet.*;
> ^
> C:\resin-1.2.3\doc\examples\Email.java:15: cannot resolve symbol
> symbol : class AddressException
> location: class jspbrasil.Email
> throws AddressException, MessageException {
> ^
> C:\resin-1.2.3\doc\examples\Email.java:15: cannot resolve symbol
> symbol : class MessageException
> location: class jspbrasil.Email
> throws AddressException, MessageException {
> ^
> C:\resin-1.2.3\doc\examples\Email.java:17: cannot resolve symbol
> symbol : class Properties
> location: class jspbrasil.Email
> Properties mailProps = new Properties();
> ^
> C:\resin-1.2.3\doc\examples\Email.java:17: cannot resolve symbol
> symbol : class Properties
> location: class jspbrasil.Email
> Properties mailProps = new Properties();
> ^
> C:\resin-1.2.3\doc\examples\Email.java:26: cannot resolve symbol
> symbol : class InternetAdress
> location: class jspbrasil.Email InternetAdress destinatario = new
> InternetAdress (to);
> ^
> C:\resin-1.2.3\doc\examples\Email.java:26: cannot resolve symbol
> symbol : class InternetAdress
> location: class jspbrasil.Email
> InternetAdress destinatario = new InternetAdress (to);
> ^
> C:\resin-1.2.3\doc\examples\Email.java:27: cannot resolve symbol
> symbol : class InternetAdress
> location: class jspbrasil.Email
> InternetAdress remetente = new InternetAdress (from);
> ^
> C:\resin-1.2.3\doc\examples\Email.java:27: cannot resolve symbol
> symbol : class InternetAdress
> location: class jspbrasil.Email
> InternetAdress remetente = new InternetAdress (from);
> ^
> C:\resin-1.2.3\doc\examples\Email.java:32: cannot resolve symbol
> symbol : class Message
> location: class jspbrasil.Email
> Message message = new MimeMessage (mailSession);
> ^
> C:\resin-1.2.3\doc\examples\Email.java:32: cannot resolve symbol
> symbol : class MimeMessage
> location: class jspbrasil.Email
> Message message = new MimeMessage (mailSession);
> ^
> C:\resin-1.2.3\doc\examples\Email.java:32: cannot resolve symbol
> symbol : variable mailSession
> location: class jspbrasil.Email
> Message message = new MimeMessage (mailSession);
> ^
> C:\resin-1.2.3\doc\examples\Email.java:40: cannot resolve symbol
> symbol : class RecipientType
> location: package Message
> message.setRecipient( Message.RecipientType.TO, destinatário );
> ^
> C:\resin-1.2.3\doc\examples\Email.java:40: cannot resolve symbol
> symbol : variable destinatário
> location: class jspbrasil.Email
> message.setRecipient( Message.RecipientType.TO, destinatário );
> ^
> C:\resin-1.2.3\doc\examples\Email.java:49: cannot resolve symbol
> symbol : variable Transport
> location: class jspbrasil.Email
> Transport.send (message);
> ^
> 18 errors
>
> Tool completed with exit code 1
>
>
>
>
>
> ------------------------------ LISTA SOUJAVA ----------------------------
> http://www.soujava.org.br - Sociedade de Usuários Java da Sucesu-SP
> dúvidas mais comuns: http://www.soujava.org.br/faq.htm
> regras da lista: http://www.soujava.org.br/regras.htm
> para sair da lista: envie email para [EMAIL PROTECTED]
> -------------------------------------------------------------------------
>
>
>
>
------------------------------ LISTA SOUJAVA ----------------------------
http://www.soujava.org.br - Sociedade de Usuários Java da Sucesu-SP
dúvidas mais comuns: http://www.soujava.org.br/faq.htm
regras da lista: http://www.soujava.org.br/regras.htm
para sair da lista: envie email para [EMAIL PROTECTED]
-------------------------------------------------------------------------