Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
java-mail
- Page 1
Re: Java mail api
Programming
Software Development
13 Years Ago
by ravi063
…can send
mail
using
java
mail
api.. First download api jar from the site: [url]http://www.oracle.com/technetwork/
java
/javamail/… Check the code in ur link: props.put("
mail
.smtp.host", "smtp.gmail.com");-->…server of your internet service provider also. props.put("
mail
.smtp.port", "465"); --> This…
Java mail api
Programming
Software Development
13 Years Ago
by newbie14
Dear All, I would like to send email using
java
application. So I found this article [url]http://www.javabeat.net/tips/33-sending-
mail
-from-
java
.html[/url]. The problem now my environment is linux with jdk1.6 I do know how to setup the
Java
Mail
Api. Any guide please? Thank you.
java mail class not found... But i ALREADY used that class!?
Programming
Software Development
13 Years Ago
by Mr.BunyRabit
…... its like it changes my code for me!!! I use
java
mail
to send emails. Now i got it to work a… a sudden im getting errors, that it cant find the
mail
class? I changed my default platform manager a few days…
Re: Java Mail API problem
Programming
Software Development
11 Years Ago
by Chetan_1
How can i bind jProgressBar to progress of fetching mails of INBOX using
java
mail
API,means i am fetching mails and that progress of process bind to jProgressBar.
Re: Java Mail->javax.mail.MessagingException: 220
Programming
Software Development
16 Years Ago
by regent_royal
hi, you can also find your code for
mail
through
java
mail
api..
mail
via gmail account
Using Java Mail with Desktop app
Programming
Software Development
13 Years Ago
by cisumma
… how to set this up. I have planned on using
Java
mail
. The String variables in my main could not be right… ss = new SimpleSender(); ss.send(smtpServer, to, from, subject, body); //
java
mail
inserted [/code] Re-engineering class: [code] /* * To change this template…
Re: java mail class not found... But i ALREADY used that class!?
Programming
Software Development
13 Years Ago
by Mr.BunyRabit
…
java
.sql.ResultSet; import
java
.util.Properties; import javax.
mail
.Message; import javax.
mail
.Session; import javax.
mail
.Transport; import javax.
mail
.internet.InternetAddress; import javax.
mail
…
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
…;); Session session = Session.getDefaultInstance(props,new javax.
mail
.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new… example I gave you // // do any
Mail
initialisation that maybe needed while (true) { …
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
…;465"); Session session = Session.getDefaultInstance(props, new javax.
mail
.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication("*****&….setSubject("Testing Subject"); message.setText("Dear
Mail
Crawler," + "\n\n No spam to…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
…your ConnectionHandler. You'll probably need to synchronise the
mail
bit to avoid thread issues if two instances of …ConnectionHandler are running simultaneously. If the
mail
sending is more embedded than that, then I'd…on a blocking FIFO job queue, with a single
mail
-sending thread processing requests off the queue one at …
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
…Anyway, here's the template app... [CODE=
JAVA
]import
java
.util.concurrent.LinkedBlockingQueue; import javax.
mail
.Message; public class GPSDemo { // variables shared …just like the QueueProcessor example I gave you // // do any
Mail
initialisation that maybe needed while (true) { // take next …
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… Message objects. In my code I started with import javax.
mail
.Message; so that's the Message class its referring to… message), then hand it off via the queue to a
mail
processor that would do the send (which is slow because…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… takes. Point 2. This code splits into three parts: 1.
Mail
initialisation: lines 1-14. This needs to be executed once…, so it goes in the
mail
processor's run method, [B][I]before [/I][/B]entering… the while loop 2. Building the
mail
message: lines 18-24 This needs data from your database…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… the queue on the next line. Did you include javax.
mail
...? 2. You probably don't need any tidy up for…
mail
; I'm not sure. YOur latest code looks OK to …
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
Dear James, I saw one site it say just store the
mail
.jar in the ext library that will do the job for linux? I am confuse with the path and classpath what are they for exactly?
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… come back to it later. For now just call the
mail
method(s) from your run. It will help if you…
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
… just like the QueueProcessor example I gave you // // do any
Mail
initialisation that maybe needed while (true) { // take next email Message…
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
… as Message Object. Yes I have included all the javax.
mail
relevant libraries.
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
…, I thought the the session variable was already in the
mail
processor? Apart from that, "yes" to all your…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… It's just a list of locations where
Java
can loook to find class definitions (*.class files).…this for any extra jars you need and
Java
will find them there. I believe that this… if you are frequently messing about with your
Java
installs you may need to copy/move anything …least you will have to do this when
Java
7 is released soon-ish. For some …
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… this class and use instance methods. [CODE]import
java
.util.concurrent.LinkedBlockingQueue; import
java
.lang.Runnable; public class BackgroundWorkQueue { // enqueues tasks (Runnables…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
If you have 1.6 then you should have everything you need, regardless of OS platform. Have a look at [url]http://www.javaworld.com/javaworld/jw-06-1999/jw-06-javamail.html[/url] then look at the javamail documentation on Oracle's
Java
web site.
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
… just the w or the writer buffer because according to
java
documentation you close that it will hand the rest automatically…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… earlier. Maybe you can just read those strings into a
Java
variable and put a copy onto a queue then close…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… with. It's fully runnable as it is. [CODE]import
java
.util.concurrent.LinkedBlockingQueue; public class Demo { public static void main…
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
… have tried something like below.I get this error commServer.
java
:66: illegal start of expression private LinkedBlockingQueue<String>…
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… the main class and make it static public (not ideal
Java
technique, but good enough for now).
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… part as soon as you have coded it. Threads in
Java
don't create any important overhead. We are maybe talking…
Re: Java mail api
Programming
Software Development
13 Years Ago
by newbie14
Dear James, Where and how to check queue size? Just to give further description this
java
programme I run on server and db server is separate server altogether. Thank you.
Re: Java mail api
Programming
Software Development
13 Years Ago
by JamesCherrill
… you. [QUOTE=newbie14;1587141] Just to give further description this
java
programme I run on server and db server is separate…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC