clarification.
Apply credits.
error log
to should be $to :(
correct variable will send notifications now.