Results 1 to 3 of 3

Thread: send email RESOLVED

  1. #1

    Thread Starter
    Hyperactive Member GingerNut's Avatar
    Join Date
    May 2002
    Location
    Are those my feet?
    Posts
    372

    send email RESOLVED

    Hi guys,

    I have a reservation form which uses this to send the email:

    PHP Code:
    mail("[email protected]""Show Reservation""$message"$headers); // sends an email 
    If I want to send it to multiple emails do I just add the emails seperated by commas, like this:

    PHP Code:
    mail("[email protected], [email][email protected][/email]""Show Reservation""$message"$headers); // sends an email 
    or is there another way it should be done?
    Last edited by GingerNut; Dec 2nd, 2002 at 09:50 AM.
    How is it one careless match can start a forest fire, but it takes a whole box to start a campfire?

    Global Freelancers | Web Traffic Analyser

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    According to the manual:

    mail() automatically mails the message specified in message to the receiver specified in to. Multiple recipients can be specified by putting a comma between each address in to.

    -http://www.php.net/manual/en/function.mail.php
    So there you have it.

    Note: when they refer to to, they mean the first parameter.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Hyperactive Member GingerNut's Avatar
    Join Date
    May 2002
    Location
    Are those my feet?
    Posts
    372
    Thanks.
    How is it one careless match can start a forest fire, but it takes a whole box to start a campfire?

    Global Freelancers | Web Traffic Analyser

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width