• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send mail using JavaMail API by connecting to another network

 
Susmitha Metlapalli
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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate 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!