Jump to content

Automatic setup failed mail


wdele

Recommended Posts

Haven't played with prov. modules in a while but...

 

If your createAccount function returns anything else than the word "success", WHMCS should know it's not good and then, depending on a call type, display the error to the admin area or send an email.

 

Email should be sent only on automatic account creations (auto-create on invoice paid)

Link to comment
Share on other sites

Haven't played with prov. modules in a while but...

 

If your createAccount function returns anything else than the word "success", WHMCS should know it's not good and then, depending on a call type, display the error to the admin area or send an email.

 

Email should be sent only on automatic account creations (auto-create on invoice paid)

 

That's weird. My CreateAccount function basically uses else { if it failed:

 

$result = $errorinfo;

 

But it doesn't send the module error email...

Edited by wdele
Link to comment
Share on other sites

I've just found out that the module is actually telling WHMCS that the provisioning failed. This is what's in the log:

 

Module Create Failed - Service ID: 55 - Error: Server add failed: Please upload/select a valid ISO or specify a valid iPXE Chain URL

 

But it doesn't send the automatic provisioning failed email. It does with cPanel, eNom, etc., which is in this case a good thing. What's the problem?

Link to comment
Share on other sites

Ah...i was hoping you managed to get WHMCS do it on its own once the module returns something else than "success".

 

Anyway..gj

 

Nope, that didn't work. The WHMCS developers said they use the same way I do it as well, so I guess I'd be better off doing that.

 

Thanks for your help, by the way :)

Edited by wdele
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