• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Using SMTPAppender with MS Outlook

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sunny Kumar Kalra
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 28313
207
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic