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

    Possible to set Content-Type with mail.php?

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 138 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.
    • D
      drcstang
      last edited by

      I'm trying to send an email from the command line using something like:

      command-outputs-html | mail.php -s='html report'
      

      While I receive the email, the Content-Type is not set, so I get raw html output. Is it possible to set:

      Content-Type: text/html;
      

      I noticed with reports sent via mailreport package seem to set the Content-Type, so I suspect it might be possible.

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