Hello all, I have a requirement to send an email from a shell script. Simple enough. A google search gives thousands of examples. But here's the catch. I need to be able to specify the "from" address, and none of the examples I've found allow for that.
When I used the mail or mailx commands, the email goes out just fine, but it comes from
oracle@hostname.domain.com
I need the "from" address to be
webmaster@domain.com
I could write an Expect script that telnets to the SMTP server on port 25 and issues the relevant commands, but I feel like there must be a simpler solution.
The goal is that so when people reply to this automated message, it goes to a valid deliverable email address.
oracle@hostname.domain.com is not a valid email address, since no SMTP server is running on hostname.domain.com
Thank you