Sending email using external SMTP server
Hi all,
I need to send email connecting to an external SMTP server, using user/password, like I do in linux via nail in the command line.
What I am using now is:
1) Getting the connection string
root@myserver:~# perl -MMIME::Base64 -e 'print encode_base64("\000myuser\@mysmtpserver.com\000mypass")'
2) Opening a connection using the connection string to authenticate:
root@myserver:~# openssl s_client -crlf -connect mail.mysmtpserver.com:465
...
EHLO mail.mysmtpserver.com
250-
...
AUTH PLAIN <CONNECTION STRING...>
235 2.7.0 Authentication successful
...
MAIL FROM: <...
...
.
QUIT
DONE
root@myserver:~#
Do we have any similar tool in solaris 10 or 11 that makes my life simpler, like mailx.