Yes, you are doing SMTP pipelining, i guess your server does not accept pipelining, you need to wait for responses from the server before sending your commands.