SMTP Configuration

Hello everyone,
I've got this Java script which needs to know the SMTP host in order to send out mails from a particular mail ID. But I have no idea how or what to configure in SMTP for getting this code up and running.(All I know is SMTP=Simple Mail Transfer Protocol).
I'm using Solaris 5.8.
PS: The Java script is working absolutely fine when I'm trying to run it from a different server which has got SMTP host configured in it previously.
Thanks in advance :slight_smile:

try something like this

echo "hello" | sendmail -v me@myaddress.com

You will see a line 'connecting to relay' and after that is the mail host's IP. I'm not a Sun person, but I think sendmail.cf is the configuration file. Your code can look in there for the IP of the smtp server.

This is more of a Sun admin question.