ahanssen / skpsmtpmessage

Automatically exported from code.google.com/p/skpsmtpmessage
0 stars 0 forks source link

another prefix to check for: Gmail returns prefix 553 for invalid To address #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Gmail returns prefix 553 when it encounters an invalid TO address.

i just changed line 670 from:

else if ([tmpLine hasPrefix:@"550 "])

to this:

else if ([tmpLine hasPrefix:@"550 "]  || [tmpLine hasPrefix:@"553"])

here's the exact response message if you're interested:
S: 553-5.1.2 We weren't able to find the recipient domain. Please check
S: 553-5.1.2 for any spelling errors, and make sure you didn't enter any
S: 553-5.1.2 spaces, periods, or other punctuation after the recipient's
S: 553 5.1.2 email address. 33sm16240276yxr.57

Original issue reported on code.google.com by gelli...@gmail.com on 24 Feb 2009 at 7:59