Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#usr/bin/perl
use MIME::Entity;
use Crypt::Blowfish;
$mailprog = '/usr/sbin/sendmail';$auto_type = 'text/plain';$auto_encoding = 'base64';
$auto_body = 'body.txt';$message_type = 'multipart/mixed'; $log_or_email = 'B';
$email_log = 'automail_lite.log';
$RealFile = "P$hour$min$sec$year$yday-$pid.pck";
open (TXT, ">$RealFile");
$msg_body = "whatever you want to send in a text file";
my $tmp = $msg_body;
($msg_body = $tmp) =~ s/\n/$1/;
$key = pack("H*", "ABCFDE1090FFFFFF");
$cipher = new Crypt::Blowfish $key;
$ipos = 0;
while ($ipos < length $msg_body) {
$this_chunk = substr($msg_body, $ipos, 8);
$ipos = $ipos + 8;
if (length $this_chunk < 8) {
for ($i = length $this_chunk; $i < 8; $i++) {
$this_chunk = $this_chunk." ";
}
}
$ciphertext = $cipher->encrypt("$this_chunk"); # NB - 8 bytes
print TXT "$ciphertext";
}
close (TXT);
$Body = "new mail from webserver\n\n";
&send_mail;
@file = "$RealFile";
unlink @file;
$Body = "Thank you for doing business with us\n";
sub send_mail {
local($print_config,$key,$sort_order,$sorted_field,$env_report);
$top = build MIME::Entity Type => "multipart/mixed",
From => "webserver\@yourdomain.com",
To => "whoever\@yourdomain.com",
Subject => "New $title request from webserver";
attach $top Data=> $Body;
attach $top Path => "$RealFile",Type => "text/plain" ,Encoding => "base64";
open MAIL, "|$mailprog -t -i" or die "open: $!";
$top->print(\*MAIL);
close MAIL;
}