I'm setting up sendmail on my home computer to use with my webserver. I've set it to use my SMTP server provided by my hosting company.
If I use the following command, it works
sendmail -Am -t -v
and then I enter the to and from emails.
But if I try the following, it does not work.
sendmail -v firstname.lastname@example.org < test.txt
The TO email is the same as in the earlier command, but in this case I haven't specified a FROM e-mail, which I think is the problem.
My guess is that it's sending the mail from user@localhost causing the smtp server to reject it. If so, how do I make it send from email@example.com?