Prev: Connection Pool with JNDI issue
Next: DIRECT CLIENT Opening: ITIM-TAM Analyst in Austin, TX.- 06+ months
From: jesbox on 9 Jun 2010 09:15 On Jun 9, 12:48 pm, Paul Cager <paul.ca...(a)googlemail.com> wrote: > On Jun 8, 11:58 pm, jesbox <jesb...(a)gmail.com> wrote: > > > Thanks for the tips. I have changed into hard-coded values, i.e. > > System.setProperty("mail.smtps.auth", "true"); // enable https > > new Mailer("smtp.gmail.com", 465, "myEm...(a)gmail.com", > > "a_password").sendMail(email); > > Sorry if this is a silly question, but are the username and password > above just dummies because you (wisely) don't want to publish your > real user/password on usenet? You _are_ passing in your own real Gmail > user-id and password when you run your program? No, they are dummy values. I did not do that mistake ;-) But I could have made it clear by calling it e.g. dummy_password or something.
From: Roedy Green on 9 Jun 2010 09:16 On Tue, 8 Jun 2010 02:08:50 -0700 (PDT), jesbox <jesboxx(a)gmail.com> wrote, quoted or indirectly quoted someone who said : > >I am trying to get JavaMail to work and have picked a library "Very >Simple Java Mail" at http://code.google.com/p/vesijama/ that seems to I used Sun's JavaMail implementation and it works without trouble. See http://mindprod.com/products.html#BULK for the source code. -- Roedy Green Canadian Mind Products http://mindprod.com Have you ever noticed that any computer search in the movies, is always linear, with, for example, candidate fingerprints flashing up on the screen one after another? The public is still under the delusion that electronic files are microscopic filing cabinets made out of tiny wires or magnetic patches inside the computer. Most lay people are surprised that it is easy for a computer to file things simultaneously by a dozen different schemes, and that they can have any report printed in any number of different sorted orders. With physical files, they are limited to one ordering/access.
From: Martin Gregorie on 9 Jun 2010 11:04 On Wed, 09 Jun 2010 06:16:10 -0700, Roedy Green wrote: > On Tue, 8 Jun 2010 02:08:50 -0700 (PDT), jesbox <jesboxx(a)gmail.com> > wrote, quoted or indirectly quoted someone who said : > > >>I am trying to get JavaMail to work and have picked a library "Very >>Simple Java Mail" at http://code.google.com/p/vesijama/ that seems to > > I used Sun's JavaMail implementation and it works without trouble. See > http://mindprod.com/products.html#BULK for the source code. Same here. The examples in Sun's Javamail API Design Specification are clear and useful and so are the JavaMail class specification. Read them in that order to get a good idea of how it all works. Using JavaMail directly doesn't add much complexity over an above the Google wrapper classes you're using and you may find you get more help if you use bare JavaMail, simply because more of us have used it than that Google package. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
From: Paul Cager on 9 Jun 2010 11:52 On Jun 9, 2:15 pm, jesbox <jesb...(a)gmail.com> wrote: > No, they are dummy values. I did not do that mistake ;-) > But I could have made it clear by calling it e.g. dummy_password or > something. Worth asking.... As others have said, it might be less confusing to use JavaMail directly rather than via vesijama. But it could be interesting to use a TCP monitor (such as Wireshark, http://www.wireshark.org/download.html) to see exactly what is being sent to the mail server. To see it all in plain text you'd have to disable SSL, though.
From: Arne Vajhøj on 9 Jun 2010 20:44 On 09-06-2010 04:23, jesbox wrote: > On Jun 9, 1:30 am, Arne Vajh�j<a...(a)vajhoej.dk> wrote: >> On 08-06-2010 18:58, jesbox wrote: >> >>> Thanks for the tips. I have changed into hard-coded values, i.e. >>> System.setProperty("mail.smtps.auth", "true"); // enable https >> >> Not so relevant for your problem but you are using >> SMTP over SSL where HTTPS is HTTP over SSL. > > Right, I try to run SMTP over SSL. And, as you suggest, that insight > does not bring me forward. > Thanks for the enlightment anyway. I just wanted to avoid future confusion by other readers. Arne
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: Connection Pool with JNDI issue Next: DIRECT CLIENT Opening: ITIM-TAM Analyst in Austin, TX.- 06+ months |