Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter atiquetedevelopers

    (@atiquetedevelopers)

    Please, any help with this?

    I try to edit “classes.php” without success ??

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What error with what file name exactly?

    Thread Starter atiquetedevelopers

    (@atiquetedevelopers)

    When I upload a file named with something like ‘testfile – áéí.doc’ (accents in the filename), I get an error that corresponds to the option:
    “# Sender’s message was failed to send”

    Only happens when the filename contains special chars, what can I do to fix it?

    Thanks!

    Thread Starter atiquetedevelopers

    (@atiquetedevelopers)

    And… I tried to do something like this in classes.php (function mail_attachments):

    foreach ( (array) $this->uploaded_files as $name => $path ) {
    	if ( false !== strpos( $template, "[${name}]" ) && ! empty( $path ) ){
    		$path = str_replace(' ', '-', $path ); // Replaces all spaces with hyphens.
    		$path = preg_replace('/[^A-Za-z0-9\-]/', '', $path); // Removes special chars.
    		$attachments[] = $path;
    	}
    }

    But when I download the file in the generated mail, it’s empty ??

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Maybe it’s specific to your server settings. I just tested to upload and attach “testfile – áéí.doc” on my test environment and didn’t see any issues. Try checking the PHP error logs on your host.

    And, don’t edit plugin’s files. It doesn’t solve any issues and can make the situation worse.

    Thread Starter atiquetedevelopers

    (@atiquetedevelopers)

    Thanks for your reply.

    I check my logs but seems it’s everything OK (and is not!):

    89.140.110.137 - - [23/May/2014:11:06:58 +0000] "POST /contacto/ HTTP/1.1" 200 746 "https://www.MYWEBSITE.com/contacto/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
    89.140.110.137 - - [23/May/2014:11:06:59 +0000] "GET /wp-content/uploads/wpcf7_captcha/1259675536.png HTTP/1.1" 200 1565 "https://www.MYWEBSITE.com/contacto/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Spanish Accents in File Attachment’ is closed to new replies.