in reply to Unable to send mail using Mail::Sendmail?

it's not showing any error message

You could enable debugging:

use Mail::Sendmail qw(sendmail %mailcfg); $mailcfg{debug} = 6;