my question is that can we send e-mail through code written in java? i know that it can be made in php but don't knoe about java...if answer is yes, then can u give me hint that how to proceed means what to use(API, servlets or jsp or link from which i can take hint)? if no, then why is it so ? thanks in advance. any help will be appreciated.
gourav1
-12
Posting Whiz in Training
Recommended Answers
Jump to Postyes, that is possible.
just take a look at this thread.
Jump to PostThe Desktop API (Java 1.6 and later) includes sending emails via your system's default email application
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/
It's a LOT simpler than the old javamail api.
Jump to Postsome api's you need to download yourself and import them in your application.
Jump to PostI assume you're using an IDE.
you can add the .jar file to the resources of that project.
Jump to Postthe link I provided you is an earlier thread where you find all the information you need to send an email using a gmail account.
if you want to use other addresses, you 'll have to change some of the information
All 23 Replies
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
gourav1
-12
Posting Whiz in Training
zeroliken
79
Nearly a Posting Virtuoso
gourav1
-12
Posting Whiz in Training
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
gourav1
-12
Posting Whiz in Training
stultuske
1,116
Posting Maven
Featured Poster
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.