Ho risolto e ancora una volta stringo la mano alla chiarezza della documentazione.
Ecco la spiegazione dei 5 parametri di addAttachment:
string $file - The file name or the data itself
string $c_type - The content type of the image or file.
string $name - The suggested file name for the data. Only used, if $file contains data.
boolean $isfile - Whether $file is a file name or not.
string $encoding - Type of transfer encoding to use for the file data. Defaults is "base64". For text based files (eg. scripts/html etc.) this could be given as "quoted-printable".
Vediamo se trovate l'intruso....
Allora, nella descrizione del primo parametro mi si dice che se gli passo un percorso o un binario per lui è lo stesso.
Ma mi spiegate il senso del 4° parametro? Magari scrivere "Whether $file is a file path (true) or binary (false)" guastava tanto?
A bestemmie e tentativi ci sono arrivato![]()
Mah, almeno ho risolto e mi sento un pò più ricco adesso![]()