credo che verrò additato come il rompiscatole che consiglia di leggere le guide, ma la verità è che tutto ciò che ci serve è a portata di mano.
Sul sito di php.net sono arrivato a questa pagina:
http://fr.php.net/manual/it/ref.mail.php#ini.smtp
e leggendo tra i commenti degli utenti c'è questo:
spero ti possa essere utile..Metin Savignano <ms201 at zipfly dot de>
04-Feb-2005 02:32
If you want to use the mail() function under *nix and Windows alike, I recommend using the little fake sendmail utility available under http://glob.com.au/sendmail/ (bsd license).
I tried it and it works great for me. I can use the very same PHP code on both the Linux server as well as my Windows test machine. It supports auth smtp.
Instructions: Download fake sendmail, unzip it into a directory of your choice, customize the sendmail.ini to your smtp server, set the sendmail path in your php.ini, and you're done.
ciao