File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Using SMTPAppender with MS Outlook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Using SMTPAppender with MS Outlook" Watch "Using SMTPAppender with MS Outlook" New topic
Author

Using SMTPAppender with MS Outlook

Sunny Kumar Kalra
Greenhorn

Joined: Oct 10, 2010
Posts: 15
Hi All,

I am trying to configure SMTPAppender properties of Log4j to send email through my MS outlook client.
I am able to send the mails for exceptions through Gmail account. But dont know about outlook configuration properties.

Somebody Please guide me in this.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Outlook is an email client; you can't use SMTP to access it. Are you trying to use an Exchange server, maybe? If so, is it configured to allow SMTP connections from clients?


Ping & DNS - updated with new look and Ping home screen widget
Sunny Kumar Kalra
Greenhorn

Joined: Oct 10, 2010
Posts: 15
I dont think so that I can access exchange server , as I am working in a organization and they might have firewalls to prevent access.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
That's something you need to work through with your sys admin. But regardless, Outlook is the client and Exchange is the server. And SMTPAppender uses JavaMail to access a server.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

Sunny Kumar Kalra wrote:I dont think so that I can access exchange server , as I am working in a organization and they might have firewalls to prevent access.


You (presumably!) access the Exchange server all day long - unless they're using something other that Exchange to handle the corporate email.

Your log should be sent to the mailserver, whose address can be provided by one of your local network support people, along with any userid/password you might optionally need. The "To" address of that mail would be the email address of the log's recipent. The app being logged thus sends the log to the mailserver, and the recipient uses MS Outlook (or some other mail Client) to retrieve the log email from the mailserver just like they would any other email.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using SMTPAppender with MS Outlook
 
Similar Threads
overwrite SMTPAppender properties
outlook configuration
to call outlook express mail message window
Send email from Outlook
Java Mail