my $Database = $Notes->GetDatabase("", "") or die "Could not open database.\n"; $Database->OpenMail;