cry4pizza Posted yesterday at 07:41 AM Share Posted yesterday at 07:41 AM 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? 0 Quote Link to comment Share on other sites More sharing options...
cry4pizza Posted yesterday at 10:01 AM Author Share Posted yesterday at 10:01 AM 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. 0 Quote Link to comment Share on other sites More sharing options...
cry4pizza Posted yesterday at 12:02 PM Author Share Posted yesterday at 12:02 PM Or does this really ONLY work with admin email templates? Because I can't create them at all. 0 Quote Link to comment Share on other sites More sharing options...
cry4pizza Posted 12 hours ago Author Share Posted 12 hours ago Tbh IMO it doesent makes sense that SendAdminEmail only supports AdminEmail templates. But the bigger question for me is, why cant i just create my own Admin Email templates? It just dont make any sense.. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.