in reply to Re^5: MIME::Lite behaving strange
in thread MIME::Lite behaving strange

it is throwing me error : Failed to connect to mail server: Invalid Argument on this line: $msg->send; where the arguments passed are same as shown above

so you're also using 'server name' and this is a real name that exists?