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! Link to comment https://forums.phpfreaks.com/topic/201198-10-donation-bribe-email-encoding-problem/ 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. Link to comment https://forums.phpfreaks.com/topic/201198-10-donation-bribe-email-encoding-problem/#findComment-1055568 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.