$ gedit mail.pl
add the following line in the file
$result=system(“mail -s \”hello\” xxx\@gmail.com < test.txt”);
$ perl mail.pl
It will send the mail with the subject hello and the content in test.txt file too xxx@gmail.com
Advertisement
$ gedit mail.pl
add the following line in the file
$result=system(“mail -s \”hello\” xxx\@gmail.com < test.txt”);
$ perl mail.pl
It will send the mail with the subject hello and the content in test.txt file too xxx@gmail.com