Hi Artifact,
I use Mail::Sender from my code. Here's a test script to use it:
#!/usr/bin/perl -w use strict; use Mail::Sender; my $sender = new Mail::Sender { auth => 'PLAIN', authid => 'your email userid', authpwd => 'your email userid password', smtp => 'your isp smtp server', port => 587, from => 'image@i-mageonline.com', to => 'you@yourdomain.com', subject => 'This is a test.', msg => 'Test Message Script', #file => '/home/image/Documents/Endoscopia/default.pdf', #debug => "/home/image/Documents/SendMailDebug.txt", #debug_level => 4, #timeout => 500, }; #my $result = $sender->MailFile({ my $result = $sender->MailMsg({ msg => $sender->{msg}, #file => $sender->{file}, }); print "$sender->{error_msg}\n>>>End.\n"; 1;
You can customise the script.
Have fun.
It's well-functioned and intuitive.
Regards
Steve
In reply to Re: sending e-mail using perl script
by Steve_BZ
in thread sending e-mail using perl script
by artifact
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |