Jump to content

CPanel sync contact email address?


DanielC

Recommended Posts

I'm looking for a way to sync the email address for a client to the .contactemail address in the user's home directories. Does anyone know of a "simple" way to do this?

 

Right now, I'm going to get a list of users per server. If there isn't a .contactemail or if .contactemail is empty, I'm going to query the database for the user on the server, then get the email address by userid. Then I'm going to write .contactemail with the email address.

 

Has anyone already done this?

Link to comment
Share on other sites

I figured it out, but it's messy. On the server, I use perl to check the file's existence and some checking... Then it calls a PHP script to get the user's email address by checking for the username on the server in tblhosting, then I use another query to get the email address from tblclients by userid.

 

If anyone has another way, please let me know for the future so I don't have to make so many calls back and forth....

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated