> Company

 > News

 > Login

 

 > Home

 > Purchase

 > Explore

 > Download

 > References

 > Support Center

 > Products

 > Site Search

 

Perl Example - Send using System call

This Perl example shows how to send an email using a "system" call.
		
#!/usr/bin/perl -w
use strict;

my $executable = 'NetMailBot.exe';
my $server = 'mail.domain.com';
my $from = 'to@domain.com';
my $to = 'from@domain.com';
my $subject = 'Test: Perl system call';
my $body = "Test: Perl system call";

my @args = (  "$executable", "-server", "$server", 
                     "-from", "$from", 
                     "-to", "$to", 
                     "-subject", "\"$subject\"", 
                     "-body", "\"$body\""
                  );
my $result = system(@args);
print "$result";
		
		
 

Content, HTML, and files Copyright © 1999-2008 ExclamationSoft Inc.
Privacy Policy    ExclamationSoft Home    Contact Us
Microsoft is a registered trademark of Microsoft Corporation in the United States and other countries