I am having similar problems to this question but their solution did not resolve things fully for me. The code below will send an email a few times from the remote server bu