Why don't use Mail::Sender package?
In reply to Re: Send and Receive Mail by ph0enix in thread Send and Receive Mail by filmo