1
Vote

SMTP StaticResponseParser.ParseCapability can not parser AUTH

description

Hi,

I am trying to create connection to Microsoft Office365 SMTP server and SMTP client raises "startIndex cannot be larger than length of string." exception. As I check if reader.Text just contains "AUTH", Substring(5) raise an exception because of reader.Text length.

1:48:11 p.m. << 250-SIXPR04CA003.outlook.office365.com Hello [131.203.240.202]
1:48:12 p.m. << 250-SIZE 36700160
1:48:12 p.m. << 250-PIPELINING
1:48:12 p.m. << 250-DSN
1:48:12 p.m. << 250-ENHANCEDSTATUSCODES
1:48:12 p.m. << 250-STARTTLS
1:48:12 p.m. << 250-AUTH
1:48:18 p.m. << 250-8BITMIME
1:48:18 p.m. << 250-BINARYMIME
1:48:18 p.m. << 250 CHUNKING

Cheers,

comments