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 512077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:16:58+00:00 2026-05-13T07:16:58+00:00

hay now i want to send mail to 200 users first way $users =

  • 0

hay
now i want to send mail to 200 users
first way
$users = ‘user1@,user2@,user3,etc’;

foreach(explod(',',$users as $mail){
mail($mail,'','','');
}

or

mail(mail one,mail 2,mail3,mail4,etc)

i know the code is fully error

but i want the meaning

which is the best
mail with multi by spreate by ,
or looping the mail function with the one mail every time

  • 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-13T07:16:58+00:00Added an answer on May 13, 2026 at 7:16 am

    Ideally, you should use an external piece of mailing software so you can send an e-mail to a list and it will handle individual recipients; this way, you can avoid looping mail calls (and queued sendmail requests) while not disclosing your mailing list.

    Of the options you presented, it is best to send your email using a loop with individual calls to the mail function so as not to disclose your recipients.

    Finally, maybe try something like this:

    $recipients = array('user@example.com','admin@example.org',); // mail list
    $bcc = join(',', $recipients);
    mail(
        '"Undisclosed Recipients" <no-reply@example.com>', 
        $subject, 
        $message, 
        "BCC: {$bcc}"
    );
    

    However, if you are using this, make sure whatever sendmail client you are using strips the BCC header before sending.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hay guys, i want to use something like this users = User.objects.all() but i
Hay I've got a question about relationships. I want to Users to have Friendships.
Hay, I'm using django 1.2 and i want to know how to count rows
Hay, i can't seem to send emails using send_mail(), and I'm not sure why.
Hay, I want to use PHP's GD library to open a GIF image and
Hay, I'm using mod_rewrite with apache, and want URLS from http://www.DOMAN.com/course/course-a/ to actually serve
Hay i want to find the distance (in miles) between 2 locations using lat
Hay, I'm looking for a jQuery plugin which i've seem before but can't now
Hay Guys, i want to write a simple NNTP client, which can connect to
I want to split a string into only two parts at the first space

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.