my $Auth_type = 'LOGIN'; #PLAIN, LOGIN, CRAM-MD5# $smtp->auth( $Auth_type, $Username , $Password ); $smtp -> auth( 'LOGIN', 'z', 'ztest' );