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

    Collect email from captive portal.

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 3.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.
    • S
      sap68
      last edited by

      Hi,

      Actually use captive portal with authentication hidden (user: guest pass: mypass) to allow client enter from wifi.
      I will use default captive portal page to insert an email from users (and a checkbox to allow conset to use this mail).

      It is possible?

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @sap68:

        It is possible?

        pfSense is equipped with a build-in simple basic portal 'html' script.

        The idea is that you write your own script, and you could even add PHP scripts if needed.

        I guess, the word "possible" isn't what the one you should use here. You actually SHOULD do it.

        The real question is : CAN you do it ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • S
          sap68
          last edited by

          @Gertjan:

          @sap68:

          It is possible?

          pfSense is equipped with a build-in simple basic portal 'html' script.

          The idea is that you write your own script, and you could even add PHP scripts if needed.

          I guess, the word "possible" isn't what the one you should use here. You actually SHOULD do it.

          The real question is : CAN you do it ?

          I have som basic knowledge of HTML, my problem is:

          I have a form with authentication, How can use mail in the form if the primary action is PORTAL_ACTION?
          In other words: how can I capture mail text input form and use it with this form?
          I really don't know if it is possible.

          My form:

          <form method="post" action="$PORTAL_ACTION$">

          Click here to enter!

          mail:

          </form>

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            Hummm.

            Some solid PHP knowledge is needed.

            As you already might know, pfSense can send mails when some events happen.

            The good news : you have the code that can send mails ! (because you have pfSense).

            Glue it up together and your done.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • The Computer GuyT
              The Computer Guy
              last edited by

              This is something I had to look at for a customer last year, in the end I ended up using my website, and using a cURL command in PHP to log e-mail address into a MySQL database.

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