in reply to No smtp server found
I don't think Mail::Mailer will tell you that. You might want to try making an independent tcp/ip connection to the smtp server, port 25 and see if it succeeds, and use that separate socket connect to be your error handler ... and if you're successful, try and send the mail. It's not fool proof but it's a decent way to go ...
mr.dunstan