• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
  • Himai Minh
  • Carey Brown
  • salvin francis

javamail and smtp

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi. im using javamail
for the smtp server i specified our smtp server.
when sending emails in the same organization javamail works fine.
but when i specify an address on a different domain a SendingFailedException is displayed.
i read that the problem is the setting of SMTP server. but when i use outlook to send an email on a different domain using the same SMTP server, i am able to send the email.
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many SMTP servers do not allow relaying of messages to other servers.
IE... you are registered with ISP1 and while using their dialup can access their SMTP and send to whoever. If you dialup on ISP2 and try to send a message to an ISP2 address through ISP1's SMTP (through Outlook Express) you will most likely get an error.
This gives you some options,
Get another SMTP server that allows relays (There is a list on this board somewhere), or
Write directly to the relevand SMTP. IE... if you are sending to ISP1, use ISP1's SMTP, if its for ISP2, use ISP2's SMTP (This is a pain, so the first option is best)
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic