Jump to content

Sending e-mails from WHMCS


cry4pizza

Recommended Posts

Hello everyone!

I wanted to ask if it is possible to send an email from WHMCS to an external email address. I know that there are these two options from the API:

https://developers.whmcs.com/api-reference/sendadminemail/

https://developers.whmcs.com/api-reference/sendemail/

But these don't look like I can enter an external e-mail address.

 

My use case is that if a request to an external API fails, I want to send an email with more information about the error and what data it tried to send to the API.

Or do SendAdminEmail and SendMail each send an email to the address specified in WHMCS under: General Settings => Mail => System Emails From Email?

Link to comment
Share on other sites

I have tryed it with the SendAdminEmail action but the email doesent sent out to my local maildev (SMTP configuration works, i tested it). But if i debug the result of the mail, it says: "success". The department ID is also correct. As `type` i use: `system`.  I also created an E-Mail template with: ${custommessage} and ${customsubject}

E-Mail notifications are also enabled in the Full Administrator role settings.

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.

×
×
  • 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