SMTP2GO - 500 unrecognized command error

Hello,
I’m using the seeedstudios WIFI shield and having some issues sending the EHLO to smtp2go. I’ve gone through the process through the telnet client successfully, but when I try to do the same with the Arduino, I get the 500 unrecognized command error. I can’t for the life of me figure out why this is happening.

#include <SoftwareSerial.h>
#include "WiFly.h"
#define timer 1000

SoftwareSerial uart(2, 3); // create a serial connection to the WiFi shield TX and RX pins.
WiFly wifly(&uart); // create a WiFly library object using the serial connection to the WiFi shield we created above.

void setup()
{
    uart.begin(9600); // start the serial connection to the shield
    Serial.begin(9600); // start the Arduino serial monitor window connection
    wifly.reset(); // reset the shield
    while(wifly.join("***","***",WIFLY_AUTH_WPA2_PSK) == false)
    {
        Serial.println("Failed to connect to accesspoint. Will try again.");
    }
    Serial.println("Connected to access point!");
    while (!(wifly.connect("mail.smtp2go.com",80,DEFAULT_WAIT_RESPONSE_TIME*10))){
        Serial.println("Failed to connect to server. Will try again.");
    }
    Serial.println("Connected to SMTP server!");
    readServer();
    delay(timer);
    

sendEmail();
}

void loop()
{

};

void sendEmail(){
  Serial.println("Sending EHLO");
  wifly.println("EHLO"); delay(timer);
  readServer();
  Serial.println("QUITTING");
  wifly.println("QUIT"); delay(timer);
  readServer();

}

void readServer(){
  delay(timer/4);
  Serial.print("RESPONSE: ");
  char c;
  bool newline = false;
  if (!wifly.available()) Serial.println();
  if (wifly.available() == 63) newline = true;
  while(wifly.available()){
    c = wifly.read();
    Serial.print(c);
  }
  if (newline) Serial.print("\n");
}

Ive tried both EHLO, HELO as well as EHLO 192.168.1.157 and HELO 192.168.1.157 (the IP of my Arduino). All produce the same error.

Here are the results from the serial monitor:

Connected to access point!
Failed to connect to server. Will try again.
Connected to SMTP server!
RESPONSE: 220 mail.smtp2go.com ESMTP Exim 4.87 Wed, 21 Dec 2016 01:38:35 
Sending EHLO
RESPONSE: 500 unrecognized command
QUITTING
RESPONSE: 221 mail.smtp2go.com closing connection
*CLOS*

Interestingly enough, when I comment out the wifly.println("EHLO"); delay(timer); line, I then get this result:

Connected to access point!
Failed to connect to server. Will try again.
Connected to SMTP server!
RESPONSE: 220 mail.smtp2go.com ESMTP Exim 4.87 Wed, 21 Dec 2016 01:59:41 
Sending EHLO
RESPONSE: 
QUITTING
RESPONSE: 500 unrecognized command

I added an empty command before the EHLO, just a plain wifly.println(); line and that seems to have fixed the problem. I'm not entirely sure why.