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

Email Captive Portal login

Scheduled Pinned Locked Moved Captive Portal
4 Posts 3 Posters 3.3k 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.
  • G
    Gabri.91
    last edited by Nov 2, 2012, 2:15 PM

    Hi, I have a guest WiFi with Captive Portal, I want to send me an email when user clicks continue (also with wrong access)
    How can I made it with HTML?
    I've tried with JavaScript but seems that doesn't work..

    
    <form name="autentication" method="post" action="$PORTAL_ACTION$" id="form">
    
    Nome utente  
    
    Password   
    
    </form>
    
    

    The captiveportal-send.php page is made with PHPMailer..

    Can you help me?

    1 Reply Last reply Reply Quote 0
    • L
      lexemmens
      last edited by Nov 2, 2012, 3:07 PM

      First of all, let me ask you how many guests you'd expect. Because when you for example have 500 guests coming and let's say about 250 of them login to your WiFi network, you're going to get a lot of mail…

      What you can try is when the user clicks on 'Continue' a javascript is called. That javascript function could make an Ajax request to a page that will send you an e-mail. However, I don't know if it is possible to host that page on the pfSense server (I mean, will pfSense let PHP send an e-mail?)

      1 Reply Last reply Reply Quote 0
      • G
        Gabri.91
        last edited by Nov 2, 2012, 4:40 PM

        It's at my home, I'll expect to be about 10 in a month..  ;D
        The problem isn't mail, because with PHPmail the mail was sent perfect from Pfsense PHP, the problem is how can I intercept the continue button?

        1 Reply Last reply Reply Quote 0
        • M
          mikekennedy
          last edited by Nov 2, 2012, 9:27 PM

          it isn't html but it might help you out?

            if (!empty($_GET['act'])) {
              echo "Hello world!"; //Your code here
            } else {
          ?>
          (.. your html ..)
          
            }
          ?>
          
          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received