• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaMail but no SMTP

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm developing a Java Swing app to monitor processes. When it detects a process outage, I want it to email the support group. This app runs on a corporate laptop in a LAN network environment. The mail server is Microsoft Exchange Server and the mail client is Microsoft Outlook. SMTP is not supported so my attempts at getting the JavaMail to work have failed. I tried installing Eudora Light in an attempt to configure it so that I could use GMAIL pop3/smtp but this attempt fails also because (I assume) the ports are blocked.
Question: Is there an API available whereby I can get this Java app to send an email in this environment?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm going to guess that it is some peculuarity of your Exchange server that makes you say SMTP is not supported because Exchange itself does support SMTP.

You can use a different Transport implementation to send your emails to the server. JavaMail ships with SMTP and IMAP. Check the JavaMail home page for third party implementations of other protocols, there might be one for whichever protocol your Exchange server uses instead of SMTP. Unfortunately since SMTP is the overwhelming protocol of choice for sending mails these days you might struggle.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think that there are any alternative mail transport protocols besides SMTP. I know it's Microsoft we're talking about but even so I don't think they have written their own mail transport protocol. So if you're having trouble connecting to Exchange and using SMTP, you should ask your network support people to help you out. (For example my problem with connecting to Exchange and using SMTP was that McAfee anti-virus was blocking port 25 on my PC.)
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Clapham:
I don't think that there are any alternative mail transport protocols besides SMTP.



"Protocols" was maybe the wrong word, but there are other ways to talk to mail servers - Lotus Notes for example has its own method (though it also supports SMTP these days). The traditional way to talk to an MS mail server was via MAPI, which is what I'm wondering may have been given as the only way to connect to this particular Exchange server.
 
John Davis
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looking at MAPI documentation, it appears that it is used for getting email. I need to connect for the purposes of sending email.
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Sturrock:
The traditional way to talk to an MS mail server was via MAPI, which is what I'm wondering may have been given as the only way to connect to this particular Exchange server.

I forgot about MAPI. But surely Exchange servers that need to accept mail from the outside world have to support SMTP? At any rate, I think John needs to get competent help from within his own organization. We can really only speculate here.
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yup - and they do. You are right though, John needs to speak to his Exchange admin to find out why SMTP is not allowed.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic