Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6389455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:24:19+00:00 2026-05-25T03:24:19+00:00

I am sending emails to multiple recipients through a loop. The email elements use

  • 0

I am sending emails to multiple recipients through a loop. The email elements use language localization. When I send these emails, I would like to send these emails in the user’s native language.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:24:19+00:00Added an answer on May 25, 2026 at 3:24 am

    if you change Configure::write("Config.language") to language which belongs to user to which the current e-mail is and after you use __d() or __() methods, you should have every email text in proper language

    just translate via __dl() instead of basics.php __d() or __()

    providing example from answer on SO question no.4294543

    function __dl($domain, $str, $lang, $return = false) {
        $original = Configure::read('Config.language');
        Configure::write('Config.language', $lang);
        $str = __d($domain, $str, true);
        Configure::write('Config.language', $original);
    
        if ($return) {
            return $str;
        }
        echo $str;
    }
    
    __dl('domain', 'Foo bar', 'pt_BR');
    

    or use parameter language in __d()

    see:

    • Define the language when using gettext __d() on CakePHP
    • https://github.com/cakephp/cakephp/blob/1.3/cake/libs/i18n.php (line 134)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to send an email and instead of sending 5 individual emails to
Is it possible to send an email to multiple recipients, but on the receiving
i managed to send multiple emails ( check here ).i am stuck with sending
I've got a tricky issue sending emails with multiple recipients. It's on a company
I'm developing an email marketing system which allows users to send emails to multiple
i need create an email list sending to many emails. what is best solution
Possible Duplicate: Sending Email in .NET Through Gmail I have so many problems with
i am using mail class to send email with attachment as image to multiple
I'm needing to send around 500-2500 emails out at a time to internal email
We use Google Apps (Gmail) to send and receive all of our email. Our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.