Hello
I try to send email by applet and I have a ploblem.
First of all, I pack JavaMail and JAF into my Cabinet file (.cab). Compile
java code, build and sign cab file are fine.
When applet run, It stuck at Transport.send() function without any exceptions
occure on java console.
This is print out from java console.
======== Java Console ========
Start...
DEBUG: not loading system providers in <java.home>/lib
DEBUG: not loading optional custom providers file: /META-INF/javamail.providers
DEBUG: successfully loaded default providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]}
DEBUG: not loading optional address map file: /META-INF/javamail.address.map
Sending...
============================
I don't know what I do wrong so please see my source code for more detail.
Thank you.
Tataroz T.
PS. I am apologize for my english.
My environment:
- Win98se
- IE 5.0
- Microsoft SDK for Java 4.0
- JavaMail(tm) API 1.2 release
- Javabeans(tm) Activation Framework 1.0.1
My 3 source files:
1. msgsendsample.java (applet version -- modify from javamail1.2\demo\msgsendsample.java)
2. smtpie.html (just applet tag)
3. smtpie.bat (for compile, build cab and sign applet)
(***Please see my source files below)
// create some properties and get the default Session
Properties props = new Properties();
props.put("mail.smtp.host", host);
if (debug) props.put("mail.debug", "true");