ok ho preso quella del manuale e l'ho leggermente variata
Codice PHP:<?php // multiple recipients $to = 'ricevitore1@gmail.com'; // subject $subject = 'Birthday Reminders for August'; // message $message = ' <html> <head> <title>Birthday Reminders for August</title> </head> <body>
Here are the birthdays upcoming in August!</p> <table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th> </tr> <tr> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td> </tr> <tr> <td>Sally</td><td>17th</td><td>August</td><td>1973</td> </tr> </table> </body> </html> '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: Federico <mioindirizzo@gmail.com>' . "\r\n"; $headers .= 'CCn: [email]ricevitore2@gmail.com[/email], [email]ricevitore3@gmail.com[/email]' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); ?>
Comunque se voglio inviarla a piu destinatari che non vedano a chi è stata mandata oltre a loro la mail....bhè non riesco...
con lo script sopra, riesce a riceverla solo il "ricevitore1@gmail.com" mentre gli altri no..

Rispondi quotando