dorris

Member
Mar 26, 2007
15
0
151
I would like to run some custom code in all my resellers cpanels, that registers a fax to email with every new email account they create.
I see no hook on doaddpop.

it can be as simple as referencing a website with the email address as a querystring.

anyone managed anything of the sort?
 
Last edited:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
I would like to run some custom code in all my resellers cpanels, that registers a fax to email with every new email account they create.
I see no hook on doaddpop.

it can be as simple as referencing a website with the email address as a querystring.

anyone managed anything of the sort?
I'm unsure if the Email addpop API1 function has been spruced up to work with our API hooks. I recommend experimenting if you haven't already done so. The documentation for this is sparse at the moment but can be found in /usr/local/cpanel/hooks/README (README is a file).
 

simoesp

Member
Feb 13, 2008
11
0
51
you have to create in
/usr/local/cpanel/hooks/email/

the scripts are
addpop - run after create
delpop - run after deletion