• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending email

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What simple JAVA API is good for sending emails ? I don't want to use any JMS or Message driven bean. The simpler the better. Please give some ideas.

Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about JavaMail? You can find it on the Sun website.
 
A Flatoff
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like Apache Commons Email.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably hijacking the thread, but what does it take to be a mail server? I'd like to send some polite non-commercial mail to a thousand or so people. I talked to my ISP about it and they were really pretty friendly about helping so I could go that route.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15278
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaMail etc. are mail client APIs, they are not useful as a mail server. For a mail server, have a look at Apache James.

But for sending mail, you don't need your own mail server. You could just use JavaMail to connect to the mail server of your ISP and send the mail via that server.
[ October 25, 2007: Message edited by: Jesper Young ]
 
Jammy Wells
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can you connect to the mail server of your ISP?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15278
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this tutorial (old, from 2001, but still relevant).

Note: Don't start sending thousands of mails without talking to your ISP. They might think you are a spammer and disconnect your Internet connection.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jammy Wells:
How can you connect to the mail server of your ISP?
And after you read the tutorial, call up the people at your ISP and ask them the technical details about connecting. Such as what's the host name and do you have to authenticate or will they configure the server so you can relay, and so on.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Delphi client laying around that I've used before. It has some kind of leak that makes it go slower and slower over time until I have to kill it and restart. I'll look into making a Java client that does the same custom letters.

I did get some spam heat last time - complaints from receivers to my ISP - thought I don't meet the legal definition of spam. Quite.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic