javax.mail doesn't exit in jdk, right?

how can i solve the problem?

By downloading appropriate JAR file and adding to your project libraries. The following code snippet show some example of Java mailing plus has some links. You can find more of material for it with google

commented: HELPFUL +2

Thank you very much! it helps a lot!

More then welcome...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.