An attempt to use the package titling with the class letter:
\documentclass{letter}
\usepackage{titling}
\title{Title}
\author{Author}
\date{\today}
\begin{document}
\thetitle\par
\theauthor\par
\thedate\par
Text.
\end{document}
results in errors indicating that they are incompatible:
Undefined control sequence. \if@titlepage Extra \else. \else Extra \fi. \fi Extra \fi.
This can be avoided by, e.g., not invoking titling and instead referring to \@title, \@author, and \@date.
Nevertheless, I am interested if there is a way to patch some of the conflicting class/package definitions to maintain the possibility to use the macros provided by titling in letter? I have not found any information about this matter neither in the documentation of the class and the package nor on TeX.SX.

scrletterpackage could be an alternative solution (https://tex.stackexchange.com/questions/18033/using-bibtex-with-letter-class). – Cicada Dec 20 '20 at 08:23letterclass? You can perform similar layouts using justarticle. If you want to show what you're after, one can reproduce it. – Werner Dec 20 '20 at 17:39newlfmclass (that inherits this problem afterletter). They use its features like\newlfmP,\addr…,\name…\closelineor\psitem. It is possible to recreate them usingarticle, although the effort needed to achieve satisfactory results for a few documents in different layouts would be incomparably higher than just giving up ontitlingand using\@titleetc. I was just curious about the reason for this incompatibility, as sometimes just a single use of, e.g.,\patchcommandcould solve such errors. – Peter Dec 20 '20 at 20:57