... to conclude, after many hours, that CDO is not TLS compatible and that most likely hb_sendmail() is not compatible either. Ok. At the moment I'm happy with CDO (I don't need TLS). In the future, if needed, I will return to your sample, thank you.