• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Send mail using JavaMail API by connecting to another network

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to send mail using JavaMail API.

I have to connect from my company network to SMTP server (Incoming) of my client's network and then send mail to an other SMTP server (Outgoing) of my client's network... I am given following by my client.

1. SMTP Server host IPAddress - Incoming
2. SMTP Server host -Incoming - Username & Password
3. SMTP Server host IPAddress - Outgoing

Do my server need to have access to client's network? For this do my client need to allow my gateway ip to access their network? Anything more i need to check for this requirement...

Please help me in knowing the process in achieving this.

Thanks in advance,
Susmitha Metlapalli.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to be able to access the SMTP server, using SMTP. Speak to your network admin people (and your client's network admin people). Whether or not you can do this is down to the specifics of your networks.

(NB: you could just use a local SMTP server for outgoing emails. It will produce the same result as using the remote server, only you'll be in charge of the configuration).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!