Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Mail.php

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MakOwner
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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'
        

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • I
          imadnyx
          last edited by

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

          Thanks
          I

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.