Hi,
Im new to making modules for whmcs so i am having a bit of a hard time getting things to work.
Problem:
Im having issues sending mails to clients through mail() function when the inputs are parsed from a txt file.
$file = file( BSC_ROOT . "/site.txt");
foreach( $file as $line ) {
$parsedLine = explode(",", $line);
mail( $parsedLine[1] ,"My Subject", $parsedLine[0]); -> this fails to send
}
mail('myemail@gmail.com',"My Subjec","THIS IS A TEST"); -> this works
I am still unsure how to setup or use the phpmailer so i ended up using mail() instead.