09-05-2013 02:37 AM
i designed a captive portal which allow the guest to access the internet once he agrees to our license agreement. however before he agree/authenticate he can click on another link to report a problem.
in the report problem he will write his name, email and phone number. when clicking submit a function called processor.php will send an email to our support team
the php funcation is written below
mail("email@example.com","phpFormGenerator - Form submission","Form data:
Full Name: " . $_POST['field_1'] . "
E-Mail Address: " . $_POST['field_2'] . "
Mobile Number: " . $_POST['field_3'] . "
Report Problem: " . $_POST['field_4'] . "
however this function is not working and the processor.php is opened as webpage.
any suggestion if it is possible to do this or if there is a work around. i want the guest to be able to report problem using email address if for some reason he is facing problem of any sort.
09-05-2013 02:58 AM
Have you put this on the controller, or on an external Web server?
You cannot use php code directly on the controller...
Remember to Kudo if a post helped you! || Problem Solved? Click "Accept as Solution" in a post!
09-05-2013 03:09 AM
thank you for the reply
i already though about this work around solution where i install a web server on the same network and redirect to that server though i will have to use IP no URL and i will have to also to add rule to allow the redirection since they guest may still not be authenticated.
but is there a way to apply this on the controller ?? what if i i have clear pass guest can i send email using php mail functions ?
09-05-2013 04:13 AM
If you have clearpass guest, there is a built in emailing functionality. With some customization work, it might be possible to create a custom form for this same task.
Consulting Systems Engineer - ACCX, ACDX, ACMX
If you found my post helpful, please give kudos
09-05-2013 07:50 AM
Tim Cappalli | Aruba ClearPass TME
@timcappalli | ACMX #367 / ACCX #480 / ACEAP / CWSP
09-05-2013 07:58 AM
thank you the answers
so if i have a guest manager, i can run php script or use email server function. but on captive portal on the control there is no way other that running server on the same lan and allow access to it from controller policies.
is the above right ? and just for confirmation is their any way i can use to get around this ?