php.help.please

Out of context: Reply #3

  • Started
  • Last post
  • 3 Responses
  • enobrev0

    i'v had multiple adresses i nthe to field mess up on occasion. A more reliable (and more private if it's going out) means is to make an array of addresses and send it to each.

    $tos = array();
    $tos[] = 'email1@domain.tld';
    $tos[] = 'email2@domain.tld';

    foreach ($tos as $to_address) {
    mail($to_address, ...);
    }

    alsoinstead of making php html files, some server setups allow you to just add .phps (instead of .php) to a php file and it will actually show the code, color coded and all.

View thread