String org; int pos = from.Find('@'); if(pos >= 0) { int start = ++pos, len = from.GetLength(); while(pos < len && from[pos] != '>') pos++; org = from.Mid(start, pos - start); } else org << ipaddr; SendRecvOK(socket, "HELO " + org + "\r\n", trans_ptr);
Report message to a moderator