There are many ways to send email from a Perl script, one the all time popular being using sendmail. But, there are other ways of sending emails, one of which is using the module Net::SMTP.All you have to do is to include the Net::SMTP module in your script and try using the example below. Code: use Net::SMTP; #Create a new object with 'new'. $smtp = Net::SMTP->new("smtp.go4expert.com"); #Send the MAIL command to the server. $smtp->mail("pradeep\@go4expert.com"); #Send the server the 'Mail To' address. $smtp->to("shabbir\@go4expert.com"); #Start the message. $smtp->data(); #Send the message. $smtp->datasend("Hello World!\n\n"); #End the message. $smtp->dataend(); #Close the connection to your server. $smtp->quit(); Read more about Net::SMTP here.