Stephen Wilkey

Registered
May 28, 2016
3
0
1
Australia
cPanel Access Level
Website Owner
Hi,

I'm developing an in house application using the UAPI. I've used this command to generate a mailman OTP:UAPI Functions - Email::generate_mailman_otp - Software Development Kit - cPanel Documentation

However, neither the cpanel api documentation or the mailman documentation tells me how I can use that OTP to log in to mailman. Can you please advise the URL we should use to enter that OTP? Is it possible to pass the OTP as a parameter to the URL or does it have to be manually typed in? If it is of interest or relevant i am using php.

Thanks,
Stephen
ps. as the forum was not taking registrations earlier today due to a fault in the captcha, i've also submitted this ticket cPanel Customer Portal
 
Last edited by a moderator:

Stephen Wilkey

Registered
May 28, 2016
3
0
1
Australia
cPanel Access Level
Website Owner
Cpanel support advised that the OTP can be submitted in the administrator password field per these instructions:
This command generates a Mailing List Administration Password, you can login to your mailing list with this password at http://mail.example.com/mailman/admin/malinglist_example.com
Does anyone know if it is possible to do programmatically, eg. a GET or a POST when calling that url or can it only be done interactively by the user?
 
Last edited by a moderator:

Stephen Wilkey

Registered
May 28, 2016
3
0
1
Australia
cPanel Access Level
Website Owner
cpanel support recommended just posting the adminpw field directly to the page as the page does a self post when you click the submit button on the password and therefore it must be able to process that. That worked. As long as mailman don't change the code of that page that is a reasonable way to programmatically submit the OTP.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

I'm happy to see you were able to find a solution. Thank you for updating us with the outcome.