A Fourier-transform integral can be transformed into an integral of a periodic function over a finite interval. This integral can be calculated efficiently by the trapezium rule, while the periodic function, which is expressed as an infinite series, can be evaluated using Euler's transformation. A FORTRAN program implementing this method is presented.