Suppose $\theta$ is not an integer multiple of $\pi$.
The series $ \left | \sum e^{i n \theta} \right |$ is bounded above by $\frac{1}{|\sin \theta|}$ and, as $\left ( \frac{1}{n} \right ) $ is decreasing and tends to $0$, the series $$\sum \frac{e^{i n \theta}}{n}$$ converges, according to Dirichlet's test.
As I saw in an answer of this question, the sum is equal to $- \ln (1 - e^{i \theta})$, however, I could not think about any way which would lead to this result.
Does someone know or has any references for the derivation of this result?