problem with sending license emailAnswered

Hi,

There is a problem with WebApi file PaymentSettings.php

When a mail containing license must be sent using this line of code =>

// Send Email to the buyer     $emailSent = mail($email, 'Your '.$AppName.' product key', $emailBody, $headers);

I get this warning =>

PHP Warning: mail(): headers parameter must be string or array in PaymentSettings.php on line 196

The $headers variable is not declared somewhere

Should I replace $headers with empty string ?

Answer

Sure, or use a proper mailer like PHPMailer.