If $M$ is an M-matrix, then there is a positive definite diagonal matrix $D$ such that $DM+MD$ is positive definite (when $M$ is symmetric, that $D$ could trivially be the identity matrix). I'm afraid that this is not true for any p.d. $D$. Take, e.g.,
$$
M=\pmatrix{2 & -1 \\ -1 & 2}, \quad D=\pmatrix{20 & 0 \\ 0 & 1}.
$$
This covers also the case of a diagonally dominant $M$.
I believe that there's no sufficient condition for this to hold true unless $M$ is diagonal. Assume for now that $n=2$. Let
$$
M=\pmatrix{\alpha&-\gamma\\-\gamma&\beta}, \quad \alpha,\beta,\gamma>0.
$$
Take
$$
D=\pmatrix{\delta&0\\0&1}, \quad \delta>0,
$$
and assume $x:=[\xi,1]^T$. We have
$$
x^TDMx=\alpha\delta\xi^2 -\gamma(1+\delta)\xi + \beta.
$$
This quadratic function of $\xi$ attains negative values if the discriminant
$$\tag{1}
d(\delta):=\gamma^2(1+\delta)^2-4\alpha\beta\delta
$$
is positive for some $\delta$. Indeed, it is positive for large enough $\delta$. Hence if $\gamma>0$, there is always a diagonal matrix $D$ and a vector $x$ such that $x^TDMx<0$.
If $n>2$, you can reduce the problem to the $2\times 2$ case by looking for an $x$ having nonzeros in the positions $i$ and $j$ for which $m_{ij}<0$ ($i\neq j$) which will effectively reduce the proof the what we just did here. This gives:
For any $n\times n$ ($n\geq 2$) symmetric M-matrix $M=(m_{ij})$ such that $m_{ij}<0$ for some $i\neq j$, there is a diagonal matrix $D$ such that $DM+MD$ is not positive definite.
Also:
Let $M$ be a symmetric M-matrix such that $DM+MD$ is positive definite for any positive definite diagonal matrix $D$. Then $M$ is diagonal.