Gravar-mail: Unusual terahertz waveforms from a resonant medium controlled by diffractive optical elements