Hi,

I think you can put more than one recipient into the mail-function
by seperating them with a ",". Look in the manual for detailed info.

Johannes

"Bruno Freire" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR">news:454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR...
Hi! My name is Bruno.

Somebody can tell me how to send the same message to more than one recipient
without repeat de code??

something like

      $corpo.="\n";
      $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
      $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
      $corpo.="\t";
      $remetente="From: [EMAIL PROTECTED]";
      mail(email_one and email_two,$assunto,$corpo,$remetente);


and not

      $corpo.="\n";
      $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
      $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
      $corpo.="\t";
      $remetente="From: [EMAIL PROTECTED]";
      mail($email_ONE,$assunto,$corpo,$remetente);

      $corpo.="\n";
      $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
      $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
      $corpo.="\t";
      $remetente="From: [EMAIL PROTECTED]";
      mail($email_TWO,$assunto,$corpo,$remetente);




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to