• Resolved kigoe2

    (@kigoe2)


    I’m using the (quite popular, it seems) email to a friend plugin from http://www.lesterchan.net/. The link and form work great – however, whwn you click “Mail It!” a page comes up with “Language string failed to load: from_faile<the email I provided*>”.

    *not given, for privacy reasons.

Viewing 10 replies - 1 through 10 (of 10 total)
  • have you checked the forums at GamerZ’s site ?

    Thread Starter kigoe2

    (@kigoe2)

    Wait: there are forums…?

    Thread Starter kigoe2

    (@kigoe2)

    I use the plugin and because of your message re-checked that it works on my site. It didn’t and I got the same error message you provided in your original message above. I looked through the author’s web site (to search or post a message on his site, go to http://www.lesterchan.net/blogs/archives/2005/04/04/updated-my-wordpress-plugins/) and because I didn’t find anything, I went back to my own site to try it again so I could copy the exact error message and post the information on his blog. But now it works fine. So…I dunno. If it continues, you can go to the URL above and leave him a message. Hope this helps.

    Thread Starter kigoe2

    (@kigoe2)

    Thanks, everyone! I must be really tired or something, cuz I didn’t see that part of the forum. Sorry for being apsentminded! Anyway, I changed line 66 of the wp-email.php from $mail->Mailer = “smtp”; to $mail->Mailer = “mail”;, and it works.

    Anyone know how to get copies of emailed posts? The email-to-a-friend feature works, but I would like to get a copy of the posts emailed so that I may gauge popularity.

    Thank you!


    $mail->AddBCC('email@foo.com', 'First Person');

    where email@foo.com needs to be changed to the e-mail address you want to BCC to. Place this in the file wp-email.php along with all the other $mail strings around line 70

    Language string failed to load:
    error message:

    open:
    class-phpmailer.php
    find:around line 1487
    /**
    * Returns a message in the appropriate language.
    * @access private
    * @return string
    */
    SetLanguage(“en”); // set the default language
    ====> replace en with your language, (I’m from Austria nd so I change to :
    SetLanguage(“de”); // set the default language

    +++++++++
    same file, find :aound line:590
    /**
    * Sets the language for all class error messages. Returns false
    * if it cannot load the language file. The default language type
    * is English.
    * @param string $lang_type Type of language (e.g. Portuguese: “br”)
    * @param string $lang_path Path to the language file directory
    * @access public
    * @return bool
    */

    replace :
    include($lang_path.’phpmailer.lang-en.php’);
    with the path to your language file.

    +++++++++++++

    my prob:
    the email is sending html code.
    ????

    kindly regards
    Monika

    the way I solved this is:
    check if you have duplicate copy of
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

    in your php file.

    Remove one of them.

    the phpmailer might have difficulty reading two charset (i suspect this is what the word “Language” refering to)

    hope it helps.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Email to a friend plugin’ is closed to new replies.