Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Notification of contact email change

Discussion in 'cPanel Developers' started by swbrains, Nov 3, 2015.

  1. swbrains

    swbrains Well-Known Member

    Sep 13, 2006
    Likes Received:
    Trophy Points:
    Recently our server started sending an email notifications when the contact info is changed for a new account. Unfortunately, one goes to us and one goes to our customer, which we don't want.
    We create new accounts using the API (createacct) call, and set contactemail to our address. We then use the call to savecontactinfo to update the primary and secondary contact email. This generates the emails.

    We then changed our code to first call savecontactinfo with these parameters set:
    without setting the contact emails at all.

    Then we call the same function again to set the contact emails, hoping there will be no notifications. This sort of worked, but now we the system sends emails to the webmaster@thecustomerdomain address (which we don't set anwhere in our code) notifying them that the two settings above have been changed.

    Seems any call to savecontactinfo -- whether to disable the notifications or to set new contact info -- generates an email to the customer using webmaster@thecustomerdomain even if we never set any email addresses to webmaster@ anywhere in our code. During account creation, we specifically set the contact email to our internal address, but after the account is created, it's set to webmaster@thecustomerdomain unless we specifically call savecontactinfo. It's as if the createacct call ignores the contactemail parameter we're sending in, and if we never call savecontactinfo, it then defaults it to webmaster@thecustomerdomain.

    Any insights on how to set the contactemail during creation and generate NO emails to anyone during subsequent savecontactinfo calls would be helpful.

  2. cPDavidN

    cPDavidN cPanel Developer Staff Member

    Mar 19, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider

    Thanks for contacting us. Would you mind opening a support ticket about this? I suspect that our support staff will be able to get you an answer more quickly than I can through this venue. cPanel Customer Portal


    David Nielson
    Integration Developer, cPanel
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice