sendmail: illegal option -- Error

Joined
May 7, 2021
Messages
2
Reaction score
0
Credits
18
I am getting this error while i put below code line in shell script

cat mailheader LDW_DBMS_STATS.html | /usr/sbin/sendmail -t

mailheader content:

To: [email protected]
Subject: "Report"
Content-Type: text/html

Please let me know where i am wrong .
 


The error is probably elsewhere in your script because I copied your mailheader file and sent it the same way you did and I didn't get an error. If I were you I would just use the mail command instead of calling the installed mta directly for sending an e-mail, that way you don't need to create mail headers yourself and you can just send the contents of the html file.
 
The error is probably elsewhere in your script because I copied your mailheader file and sent it the same way you did and I didn't get an error. If I were you I would just use the mail command instead of calling the installed mta directly for sending an e-mail, that way you don't need to create mail headers yourself and you can just send the contents of the html file.

Please show me how we can do that. so that i can try.



Thanks
 


Latest posts

Top