in reply to sending e-mail using perl script
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sending e-mail using perl script
by artifact (Novice) on Aug 13, 2012 at 07:42 UTC | |
|
Re^2: sending e-mail using perl script
by ytjPerl (Scribe) on Sep 30, 2019 at 15:57 UTC | |
by Corion (Patriarch) on Sep 30, 2019 at 16:16 UTC |