Jump to content

[$10 donation bribe!!] email encoding problem?


B0b

Recommended Posts

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.