Hi there..
I tried to change to this:
$sql_data_array = array('sendto' => $GLOBALS['sendto'],
'billto' => $GLOBALS['billto'],
but then the sendto and billto was set to 0.
Now I found that the initial claim from me, that number 6 was used, and my customer was number 5, is partially wrong, as I found out later, that customer number 5 has address ID number 6.
Then my initial problem is still valid: when I use PayPal for payment, emails are not sent (not even debug mails). When I use other payment, the mail works OK.
Rune