• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending email  RSS feed

 
David Mathie
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am creating a program and would like to know how I can send an email to a specified email address.

I will have a text box where the user will enter information which will be sent as the email. Once a button is clicked that message will be sent to me. The creator of the program. Thanks have searched but seems too complicated.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Mathie wrote:Thanks have searched but seems too complicated.

It would help if you told us what you have looked at that seemed too complicated so that we don't just suggest things you have already tried.
But just in case you haven't looked at it - JavaMail is probably as good a place to start as any. If you have looked at it already maybe you can tell us what you found too complicated about it.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the JavaMail API. You can find all about it, including extensive code samples, at http://www.coderanch.com/how-to/java/JavaEnterpriseEditionFaq

You also need a mail server. That could be something like Gmail, or your company's server, or your private ISP's mail server.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!