cry4pizza Posted 12 hours ago Share Posted 12 hours ago 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 10 hours ago Author Share Posted 10 hours ago 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 8 hours ago Author Share Posted 8 hours ago 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...
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.