Am not a pro and thats why am here!!!
Am not a pro and thats why am here!!!
Am not a pro and thats why am here!!!
Am not a pro and thats why am here!!!
Originally posted by Naresh Rajan:
Rahul,
I tried the telnet stuff and it is connecting. but my application is not working. I cannot get the IP address. The name is correct though!!
Rahul Bhattacharjee wrote:
Originally posted by Naresh Rajan:
Rahul,
I tried the telnet stuff and it is connecting. but my application is not working. I cannot get the IP address. The name is correct though!!
try the following to get the IP address
ping <your_machine_name>
The response will have something like
Pinging with x bytes <your_machine_name> [your_IP]
Now use your_IP
Manish Narang wrote:
javax.mail.MessagingException: Could not connect to SMTP host: 10.35.55.203, port: 25, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at com.jnj.email.p.MailSender.sendMail(MailSender.java:59)
at com.jnj.email.p.MailSender.main(MailSender.java:23)
Could you please help?
Pat Farrell wrote:
Manish Narang wrote:
javax.mail.MessagingException: Could not connect to SMTP host: 10.35.55.203, port: 25, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at com.jnj.email.p.MailSender.sendMail(MailSender.java:59)
at com.jnj.email.p.MailSender.main(MailSender.java:23)
Could you please help?
The error message is actually quite informative. That server is not answering on port 25.
You need to contact that host's admin and see if they support SMTP input, and if so, do they require TLS, SSH, etc.
Its not a programming error, its an admin/usage issue
Manish Narang wrote:The scenario is like, we use the same smtp host in our all three env's (DEV, TEST, PROD). This program runs FINE in Production servers but not in others..
so can it be a problem with the smtp host server or DEV and TEST servers ?
i mean should contact the team which supports smtp host or DEV/TEST servers ?
Manish Narang wrote:Thanks for your reply Farrell..!
Pat Farrell: The scenario is like, we use the same smtp host in our all three env's (DEV, TEST, PROD). This program runs FINE in Production servers but not in others..
so can it be a problem with the smtp host server or DEV and TEST servers ?
i mean should contact the team which supports smtp host or DEV/TEST servers ?
Their achilles heel is the noogie! Give them noogies tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|