• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

automatic email notification functionality

 
monis raza
Ranch Hand
Posts: 38
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,
I want to implement automatic email functionality to multiple user in my project using outlook.
can someone tell me where to find resources for that .
I will b grateful
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you need to look up JavaMail
The JavaMailTM API provides classes that model a mail system.

p.s. ASAP does not really help in a request for help. We are unlikely to move faster, or slower, when we see that acronym.
 
monis raza
Ranch Hand
Posts: 38
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code but to configure for outlook, do i have to give outgoing server ?
e.g smtp.webmails.com
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't configure for Outlook. Outlook is a mail client, an application which allows a person to access their e-mail from the server where it's stored.

You'll need to connect to that server to send e-mail, just as Outlook does. So yes, your configuration has to point to an SMTP server if you want to send e-mails.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you read the Javadocs for JavaMail, you will see how to specify the SMTP host, port, etc.

https://www.coderanch.com/how-to/java/NotACodeMill , we will not do your work for you.
 
Nam Ha Minh
Ranch Hand
Posts: 504
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi monis raza,

To send e-mail messages with Java, you would need to:
- using JavaMail API
- have a SMTP account for sending.

I suggest you read this nice tutorial on how to send e-mail using JavaMail.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic