Connect to a mail relay server using PHP and sockets