hi, i'm trying to make a script to validate email addresses. i start with:
then i try:Code:<?getmxrr('birminghampr.co.uk',$mxhosts);...and 3 lines are printed:Code:$x=system("telnet $mxhosts[0] 25", $y);
while $x becomes the last line generated by the system...Code:Trying 64.233.183.27... Connected to ASPMX.L.GOOGLE.COM. Escape character is '^]'....while $y becomes the number "1" to say something like it was a good command.... but if i try to manually "telnet aspmx.l.google.com 25" i get an additional response banner as the 4th line:Code:Escape character is '^]'....now what i need to do is somehow grab this 4th line using PHP! any ideas anyone? any help would be very much appreciated.Code:220 mx.google.com ESMTP i4si16*********.1


Reply With Quote
