in reply to Re^2: Send e-mail using perlin thread Send e-mail using perl
Mail::Sendmail also allows you to specify another smtp server, though for gmail they'd need something which supports TLS, Super search has examples.