B0b Posted May 9, 2010 Share Posted May 9, 2010 Hey guys, Yes, here's a $10 PHPFreaks.com's donation bribe for a solution to my problem I'm trying to validate email addresses submitted to my form using a class on code.google.com: http://code.google.com/p/php-smtp-email-validation/ My issue is that this won't work with special characters such as ó or à. I tried encoding or decoding the email in UTF-8, but it won't work. I assume I got to add an header to the message, but I'm not sure where to put it. Here's few bytes of the code: <?php $this->sock = fsockopen( $host, $this->port, $errno, $errstr, ( float ) $timeout ) fwrite( $this->sock, $msg . "\r\n" ); Where $msg will successively contain the HELO, MAIL FROM and RCPT TO commands. I tried several things and intensively Googled, I jsut can't get these characters to be correctly seen. Thanks! Quote Link to comment Share on other sites More sharing options...
jacko_162 Posted May 9, 2010 Share Posted May 9, 2010 have a litle look here: http://php.net/manual/en/function.fsockopen.php might help you out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.