PHP code not sending to both email addresses listed only one

Posted on 2007-08-06
Last Modified: 2013-12-12
Code in PHP form is sending form results to one email address only not both, the first recipient receives the email results the second name listed does not.

"#Delegate registration SFNZ National Conference 2007",
"This is an automated message:
Question by:missmuppet
    LVL 4

    Expert Comment

    How many different email addresses have you used?
    have you tried to use the successful email address twice?

    e.g. ","

    it could be that the mail command isn't filling in absolutely all of the usual headers so this is increasing the score of the message in a spam filter somewhere.

    LVL 17

    Expert Comment

    If you send only to the second name, does it work?  If not, this is a problem with that email address, not your mail command.

    Your mail command looks perfect, there is nothing wrong with it.
    LVL 10

    Expert Comment

    $rcpts = array(
    "1" => "mymail@server.tld",
    "2" => "myother@server.tpd");

    foreach( $rcpts as $key => $value){
          mail($value, .... etc

    LVL 10

    Expert Comment

    ps this is a way to validate if all mail rcpts where succesfull... ie.

    foreach( blaaa){
                    $successes[] = $value;
                    $failures[] = $value;

    LVL 10

    Accepted Solution

    use phpmailer?

    And btw! Another Kiwi, awesome! nice to meet you xD

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now