Hello everyone, I'm back, I have a question, how we create a bash file to send emails when I say this not to be spam, but just to justify that this goes perfectly. Script source bash : Thank you for your help MM
You can try something like this: Code: cat /path/to/message.txt | formail -c -I"Subject: bla" -I"From: [email protected]" -I"To: [email protected]" -I"Received: from www.somedomain.com ([1.2.3.4])" | sendmail [email protected]