This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes automatic email notification functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "automatic email notification functionality" Watch "automatic email notification functionality" New topic
Author

automatic email notification functionality

monis raza
Ranch Hand

Joined: Sep 05, 2011
Posts: 38

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

Joined: Aug 11, 2007
Posts: 4650
    
    5

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

Joined: Sep 05, 2011
Posts: 38

I have code but to configure for outlook, do i have to give outgoing server ?
e.g smtp.webmails.com
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Aug 11, 2007
Posts: 4650
    
    5

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

Joined: Oct 31, 2011
Posts: 498

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.


PM Me If You Want to get Urgent Help on Java Programming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: automatic email notification functionality