API says it can't send while waiting on DNS

Thanks for sharing the code sample; I have sent a message in this regard. Let us know if that helps.