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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.