After you open the socket, you first need to read from it to receive the welcome message. After you verify the contents of that message, then send the hello and wait for the response from it. Bob McConnell -----Original Message----- From: Andre Polykanine [mailto:andre@xxxxxxxx] Sent: Tuesday, March 09, 2010 10:50 AM To: Kevin Kinsey Cc: Php general list Subject: Re[2]: EHLO error 554: what can it be? Hello Kevin and all, Sorry Kevin, How do I do that? Excuse me if it's a stupid question...( the only way I know is to set the timeout on the fsockopen function (the fifth parameter). I set it even to 60 but no change... Thanks a lot! -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule ----- Original message ----- From: Kevin Kinsey <kdk@xxxxxxxxxx> To: Andre Polykanine <andre@xxxxxxxx> Date: Tuesday, March 9, 2010, 6:46:24 AM Subject: EHLO error 554: what can it be? Andre Polykanine wrote: > Hello everyone, > > I'm writing a class to send mail via an SMTP server with authorization. > Everything seems to work but I get an EHLO error: > 554 SMTP synchronization error > Where should I look to avoid this? > Thanks! > Be polite :-D Make sure your class waits for the other server's greeting before you send HELO/EHLO. ;-) HTH, Kevin Kinsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php