Jump to content

Disabling emails when calling through API


aaronfc

Recommended Posts

Hi,

I have been testing the WHMCS API, and I am having problems disabling automatic emails sent.

 

I do the following calls in order to register a new client and provision a new hosting service for that client (maybe the calls I am doing are not correct, in that case please any suggestion is more than welcome).

 

1) method: addclient params: ... noemail=true

2) method: addorder params: ... noemail=true

3) method: acceptorder params: ... autosetup=true, noemail=true, sendmail=false ...

 

The problem is that using that process I WHMCS is sending an email to the customer. The email has the subject "Customer Invoice".

 

I want to avoid any communication being sent from WHMCS (I am handling the communciations on my own way). So, ¿why is it sending this email and how could I disable it?

 

My guess is that acceptorder (with autosetup=true) is triggering the provisioning and that process is sending the invoice email. How could I provision the hosting manually if setting autosetup=false ? (Rephrasing the question: What is really doing in the background autosetup=true and how could I imitate that behaviour manually?)

 

Thanks to anybody wanting to help :)

 

Regards,

Link to comment
Share on other sites

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