create a bash file to send emails

Discussion in 'Installation/Configuration' started by misterm, Oct 21, 2010.

  1. misterm

    misterm Member HowtoForge Supporter

  2. falko

    falko Super Moderator ISPConfig Developer

    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]
     

Share This Page