gazp Posted August 6, 2016 Share Posted August 6, 2016 I am trying to get WHMCS to pass variables to a script that registers new email addresses. I have the shell command postfixadmin-cli set up to create new email addresses and I have a product order working that accepts custom fields (validated email address and password fields). However, I'm not sure how to get these fields passed to a shell script. Would I use the CustomFieldSave hook to achieve this? The bash script that I need to call look like this: ```bash #!/bin/bash -x uaddress=$1 upassword=$2 postfixadmin-cli mailbox add $useraddress --password $upassword --password2 $upassword ``` 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.