TITLE: Expressing, in terms of $I$ and $M$, the $R$-modules $\mathrm{Hom}_R(R/I,M)$, $\mathrm{Hom}_R(M,R/I)$, $\mathrm{Hom}_R(I,M)$, $\mathrm{Hom}_R(M,I)$
QUESTION [5 upvotes]: Let $R$ be a commutative unital ring, $I$ an ideal of $R$, and $M$ a $R$-module. It is known that $R/I \otimes_R M \cong M/IM$. Also, $\mathrm{Hom}_R(R,M)\cong M$.
Is there some similar formula for the $R$-module $$I\otimes_RM,$$ perhaps $I\otimes_RM\cong IM$? Are there any formulas that express in terms of $I$ and $M$ the $R$-modules $$\mathrm{Hom}_R(R/I,M),\;\;\; \mathrm{Hom}_R(M,R/I),\;\;\; \mathrm{Hom}_R(I,M),\;\;\; \mathrm{Hom}_R(M,I)?$$
How about the special case $\mathrm{Hom}_R(R/I,R/J)$? If not, how does one 'compute' such modules? 
For example, can the modules $\mathrm{Hom}_\mathbb{Z}(\mathbb{Z}_m,\mathbb{Z}_n)$, $\mathrm{Hom}_\mathbb{Z}(\mathbb{Z}_m,\mathbb{Z})$, $\mathrm{Hom}_\mathbb{K[x]}(K[x]/(x^m),K[x]/(x^n))$ be expressed more nicely (Eisenbud, Commutative Algebra, p. 79, exc. 2.4)? Let me guess, the first one is $0$ if $m\!\neq\!n$, and $\mathbb{Z}_m$ if $m\!=\!n$; the second one is $0$. But I'd like to have a more general formula.
Update: $Hom(M,A/B) \cong Hom(M,A)/Hom(M,B)$?
Update: $Hom(M/A,N/B) \ncong \{f\in Hom(M,N); f(A)\subseteq B\}$ in general. For example, taking $A=M$ and $B=N$, the l.h.s. is $0$ and the r.h.s. is $Hom(M,N)$. The reason is that if $f(A)\subseteq B$ and $g(A)\subseteq B$ and $f|_A\neq g|_A$, then $f=g$ in the l.h.s. and $f\neq g$ in the r.h.s..

REPLY [3 votes]: There is no general answer (as already the other ones mentioned), but let me say something about $\hom_R(I,M)$:
An important notion in homological algebra is that of injective modules. These have property that $\hom_R(-,M)$ maps monomorphisms to epimorphisms. The criterion of Baer states that it is enough to test this for inclusions of ideals, i.e. it is enough to check if $M \cong \hom_R(R,M) \to \hom_R(I,M)$ is surjective, i.e. if every homomorphism $I \to M$ is of the form $i \mapsto im$ for some $m \in M$.
It is a good exercise to show the injectivity of $\mathbb{Q}/\mathbb{Z}$ as a $\mathbb{Z}$-module with the help of this criterion. And this also shows you how hard it can be do describe $\hom_R(I,M)$ in general.
When $I$ is a principal ideal, say $I = (f)$, then $I \cong R/\mathrm{Ann}(f)$ as $R$-modules, so that there is an easy description. More generally, when $R$ is noetherian, a formula of Deligne states that for the associated quasi-coherent module $\tilde{M}$ on the affine scheme $\mathrm{Spec}(R)$ we have the formula $\Gamma(V(I)^c,\tilde{M}) = \mathrm{colim}_n \hom_R(I^n,M)$.