I am sending email using two ways
1- use Mail::Sendmail;
2- open (SENDMAIL, "| $sendmailpath -t");
The first way sends email in 0.147 seconds and the 2nd method takes 0.017 seconds.
Can someone help me out how to take this time to 1 millisecond (0.0017 secs)?