Jump to content

Hook issue (EmailPreSend) (Quote email)


Recommended Posts

When using the hook "EmailPreSend" with sending a quote email via the admin area. The relid is returning "1" all the time, my client ID is 6 and the Quote ID is 1110. So not sure where the 1 is coming from? Should be 1110 as i understand it.

Array ( [messagename] => Quote Delivery with PDF [relid] => 1 )

 

From the documentation: http://docs.whmcs.com/Hooks:EmailPreSend

$relid = $vars['relid']; # Related ID it's being sent for - client ID, invoice ID, etc...

 

Regards,

 

Jason

Link to comment
Share on other sites

  • 4 weeks later...
  • WHMCS CEO

Hi Jason,

 

As per my previous post to you in another thread, the quote emails work differently to all the others due to quotes not always belonging to clients. So in the case of quote related emails you will always receive a relid of 1.

 

Matt

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