Hi there,
I have the following code with PHPmailer:
$tomailn[0] = '[email protected]';
$tomailn[1] = '[email protected]';
foreach($tomailn as $value)
{
$mail->AddAddress($value, '');
}
But I am getting the error 'Could not instantiate mail function'.
If I remove an item from the array it works fine, but gives an error on when trying to add 2 or more addresses. Any ideas why this is happening? Is there a different way to add multiple e-mail addresses?
Cheers, Gazler.