Mail.php



  • Poking around on pfsense this appears to be the module used to send email for the various notification functions.  I can't seem to find any documentation on how the input for this is formatted to have a message sent.
    Can anyone point me to this, or to whatever may be the equivalent to a 'mailx' command?


  • Rebel Alliance Developer Netgate

    It uses the built-in SMTP settings. Accepts a message from stdin and will set a subject based on the '-s' argument.

    So for example, to mail yourself the contents of the system log, run:

    clog /var/log/system.log | mail.php -s='System Log Contents'
    


  • Hi Jim
    What is the mail.php to send an email with an attachment?

    Thanks
    I