Send mail from command line
i'd like send e-mail from my mac using localhost like smtp server.
i've tried in two different ways:
1) i started postfix and i sent a mail from my application mail (entourage), it works perfectly but i need to send mails from command line therefore i wrote this command line:
mailx -s "subject" federico@dominio.com
<enter>
doesn't work.... 😟
2) i wrote a shell script
telnet localhost 25 << EOF
HELO apple.com
MAIL FROM: steve.jobs@apple.com
RCPT TO: federico@edominio.com
DATA
.
QUIT
doesn't work.... 😟
any idea?
thanks in advance.
ibook, Mac OS X (10.5.4)