- Edited
Hi all,
Before I explain everything, I want to be clear, I am not asking someone to do this for me. I want to build this mod myself to do 2 things: Further my education and actually solve an issue I am having. I just need some guidance.......
I have found a solution to an issue that I am having. Yes it is with the Email functionality. I have been able to configure my current installation to have all tickets (newly created and all replies) go to a specific mailbox. from there is gets distributed to all the support staff. This is intentional as we don not have any requirements for departments, SLA's or many other feature a larger company would find useful.
My intention now is that I have an email scheme that I want to follow when creating users. I know the email must be unique which is why I have come up with this:
3 letter prefix 6 digit generated number Email domain
LWA 012010 @leswilkins.com
The focus is on the 6 digit generated number. My intention is to create a mod that will generate this 6 digit number, build the email and compare it to the emails in the database. I do not want it to be sequential as I want it to look for one that is actually not being used just in case a user gets deleted.
What I need help with is how to find the routine called to check these emails. Since they will all have the same scheme (LWA000000@leswilkins.com) all I should have to check for are the number. (Not sure if that would make it faster or not) I have a pretty good idea on how to build the string for the email and inject it into the form when its called, I am just having a terrible time figuring out what routine OST calls to run the comparison. So now that you know all this....
Is there a manual/papers/schematic that I can read up on to possibly get a clue to how this portion of the software works so that I can at least come up with some code and test?
Thank you,
Wiz