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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:47:50+00:00 2026-06-17T23:47:50+00:00

I used the drupal example email module (email_example) found here: http://drupal.org/project/examples I’d like to

  • 0

I used the drupal example email module (email_example) found here: http://drupal.org/project/examples

I’d like to email multiple recipients and according to http://api.drupal.org/api/drupal/includes!mail.inc/function/drupal_mail/6:

$to: The e-mail address or addresses where the message will be sent to. The formatting of this string must comply with RFC 2822. Some examples are: user@example.com user@example.com, anotheruser@example.com User User , Another User

HOWEVER. When I try to modify $to in function email_example_mail_send($form_values) {

I am not able to add multiple addresses.

either

 $to = "example@place.com";
 $to = $form_values['email1'];

work,

but

$to = "example@place.com", "other@place.com";

or

$to = $form_values['email1'], $form_values['email2'] ;

do not.

  • 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-06-17T23:47:51+00:00Added an answer on June 17, 2026 at 11:47 pm

    Your strings aren’t properly formatted. What you need is something like this:

    $to = $form_values['email1'] . ', ' . $form_values['email2'];
    

    That will place the comma separated email addresses into $to.

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

Sidebar

Related Questions

I found multiple drupal and stackoverflow pages with examples of upload forms, but I
Im using the jQuery noConflict method here: http://drupal.org/node/1058168 Now, both of the following work:
I'm try to use drupal open id module. When i used to login using
I am using a popular module called Computed Field in Drupal. I have used
I am building a Drupal module that (among other things) creates multiple nodes of
I'd like to use jQuery's auto complete in a Drupal project to automatically find
Is there any module which can be used with Drupal 6.x for adding E-commerce
I would like to use the Drupal module JCarousel with a pager. But apperently,
I have used Answers module for question and answer functionality in Drupal 7 but
What is the function used to create taxonomy terms in Drupal from the code?

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.