Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Send email from Client model

Mark Hughes shared this idea 3 years ago
Under Consideration

It would be create if from the Client model (http://docs.whmcs.com/classes/7.1/WHMCS/User/Client.html) we could send an email. It's not a big deal having to use localAPI but it would be great if we could just:

  1. $client->sendEmail("Client Signup Email");

Instead of:

  1. $command = 'SendEmail';

    $postData = [

    'messagename' => 'Client Signup Email',

    'id' => '24',

    ];

    $results = localAPI($command, $postData, $adminUsername);