Generation of Gaussian-like electromagnetic pulses