Pessoal, alguém pode me ajudar, estou enviando o arquivo através de jsp,
não estou usando servlet, mas após
dar o submit do form, aparece a seguinte exception:

javax.mail.SendFailedException: Sending failed; nested exception is:
javax.mail.MessagingException: IOException while sending message; nested
exception is: java.io.FileNotFoundException: G:\cartao2grd.jpg (The
system cannot find the path specified) 

Alguém tem alguma idéia do que pode ser ???
abaixo segue o código

obrigado
Alexandre

try {
        Properties props = new Properties();
        props.put("mail.smtp.host", "192.168.1.1");
        Session s = Session.getInstance(props,null);
                        
        MimeMessage message = new MimeMessage(s);

        InternetAddress from = new InternetAddress(
(String)login_session.getAttribute("strEmail") ,
(String)login_session.getAttribute("strNome") );
        message.setFrom(from);

        // InternetAddress to = new InternetAddress(
"[EMAIL PROTECTED]" );
        InternetAddress to = new InternetAddress(
"[EMAIL PROTECTED]" );
        message.addRecipient(Message.RecipientType.TO, to);

        message.setSubject( "Trabalho de Universitários" );

        // CRIA A PARTE DA MENSSAGEM
        BodyPart messageBodyPart = new MimeBodyPart();
        
        // DEFINE O CONTEÚDO
        messageBodyPart.setText("Segue anexo trabalhos dos
universit[arios");
        
        Multipart multipart = new MimeMultipart();
        multipart.addBodyPart( messageBodyPart );
        
        // CONFIGURAÇÕES PARA ANEXAR IMAGEM
        messageBodyPart = new MimeBodyPart();
        DataSource source = new FileDataSource (
request.getParameter("fileArquivo") );

        if ( source.getContentType().equals("image/gif") ||
source.getContentType().equals("image/jpeg") ) {
                messageBodyPart.setDataHandler( new DataHandler ( source
) );
                messageBodyPart.setFileName( source.getName() );
                multipart.addBodyPart( messageBodyPart );
                message.setContent( multipart );
                
                // ENVIA A MENSSAGEM
                Transport.send(message);

                strStatusMail = "y";
        } else {
                strStatusMail = "n";
        }
} catch ( Exception e ) {
        out.print ( e.toString() );
        strStatusMail = "n";
}

------------------------------ 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
historico: http://www.mail-archive.com/java-list%40soujava.org.br
para sair da lista: envie email para [EMAIL PROTECTED]
-------------------------------------------------------------------------

Responder a