How to connect jazz server to smtp server ?
- i`ve recently installed SMTP server on my machine http://local-smtp-server.en.softonic.com/download#downloading ,after i run smtp server then tried to enable mail configuration settings in RTC 4.0 using https://localhost:9443/jts/admin using following values :
enable e-mail notification : true
SMTP Server name : smtp.localhost.com
server port : 25
email from address (mymail@yahoo.com)
i got exception when tried to send test mail : unknown SMTP host :smtp.localhost.com; nested exception is : java.net.unknownhostexception: smtp.localhost.com or couldn`t connect to smtp host : smtp.localhost.com, port:25, response:-1 , notice i made test smtp port 25 and it successeded
or exception reading response; nested exception is : java.net.sockettimeoutexception: read timeout when used smtp server from http://www.softstack.com/freesmtp.html
Did i use wrong smtp server ?
How can i know the correct smtp server name ?
any ideas ?!
Thanks
One answer
the DNS (name resolver) is stupid.. it looks in the hosts file, or asks the defined DNS server
'tell me the number for this name'... if the server doesn't know, there is no guessing..
so, just change it to localhost, or 127.0.0.1 or update the hosts file.
Comments
@sam: thanks alot for reply ,
sorry , where ican i find the local hosts file ??!
On Windows, this file is in C:\Windows\System32\drivers\etc.
anthony
@ Anthony : thanks alot for your response , but i wonder if i shall add new entery after that
127.0.0.1 local host ?? and if yes so which IP shall i use before smtp.localhost.com ??
@sam : using localhost or 127.0.0.1 as smtp server name works fine , thanks .