come hai risolto? così almeno chi avrà il tuo stesso problema in futuro troverà una risorsa utile...
Hai ragione...
Bastava inserire
ini_set("sendmail_from", [EMAIL="[email protected]"]info[EMAIL="[email protected]"]@miodominio.com[/EMAIL][/EMAIL]);
Prima dell'invio della email
puoi estrarre i dati in modo ordinato per tipologia, scorrere il set di risultati, inserire gli elementi in un array, tenere traccia della tipologia e quando questa cambia vuol dire che sei in un set diverso quindi cambi array e ne popoli uno nuovo.
alla fine hai 3 array popolati con i valori di tipologie omogenee.
spero di aver capito quello che hai chiesto perchè non è che ci ho capito tanto bene