in reply to Re^2: Need a Mail::SendEasy example using attachments
in thread Need a Mail::SendEasy example using attachments

It depends on the authentication protocols supported by your exchange server. Mail::Sender does support authentication, but not all protocols. The ones currently supported by Mail::Sender are LOGIN, PLAIN, CRAM-MD5 and NTLM. If you already have Mail::Sender installed you can find what protocols does the server support by this:

c:\> perl -MMail::Sender -e "print join ', ', Mail::Sender->QueryAuthP +rotocols('the.server.name')"

Replies are listed 'Best First'.
Re^4: Need a Mail::SendEasy example using attachments
by Anonymous Monk on Sep 20, 2007 at 15:33 UTC
    Not sure if this is still needed...
    #!/opt/perl/bin/perl -s use lib "/home/me/scripts/lib"; require Mail::SendEasy; #my @cclist = ('me@my.com'); <br> my $msg = `cat ./msg.txt`; my $status = Mail::SendEasy::send( smtp => 'smtp.server.com' , from => 'admin@my.com' , from_title => 'admin' , to => 'whomever@yours.com', cc => \@cclist , subject => "your subject here" , msg => $msg, msgid => "42", anex => \@ARGV ) ; if (!$status) { Mail::SendEasy::error ;}