G
gimme_this_gimme_that
This Perl script sends a message having a pdf attachment via Entourage
(via an IMAP email account).
Modify "ann_example" per your account.
#!/usr/bin/perl
use Mac::AppleScript qw(RunAppleScript);
# In Preferences you must set uncheck Warn before allowing an external
application to send mail
# You may have to check remember my password when you send a message
from Entourage so you don't get prompted to log in to your IMAP
server.
my $subject = "The igawk file you wanted : Test ACFD1FE";
my $content=<<EOF;
Attached is igawk.1.pdf
Enjoy
EOF
my $recipient = '(e-mail address removed)';
my $script=<<EOF;
tell application "Microsoft Entourage"
activate
set filePath to "Macintosh
HD:Users:ann_exampleocuments:igawk.1.pdf"
set msg to make new outgoing message with properties
{subject:"$subject", content:"$content", recipient: "Ann Example <
$recipient>", attachment:alias filePath, account:IMAP account
"ann_example"}
send msg
end tell
EOF
RunAppleScript($script) or die "Didn't work!";
(via an IMAP email account).
Modify "ann_example" per your account.
#!/usr/bin/perl
use Mac::AppleScript qw(RunAppleScript);
# In Preferences you must set uncheck Warn before allowing an external
application to send mail
# You may have to check remember my password when you send a message
from Entourage so you don't get prompted to log in to your IMAP
server.
my $subject = "The igawk file you wanted : Test ACFD1FE";
my $content=<<EOF;
Attached is igawk.1.pdf
Enjoy
EOF
my $recipient = '(e-mail address removed)';
my $script=<<EOF;
tell application "Microsoft Entourage"
activate
set filePath to "Macintosh
HD:Users:ann_exampleocuments:igawk.1.pdf"
set msg to make new outgoing message with properties
{subject:"$subject", content:"$content", recipient: "Ann Example <
$recipient>", attachment:alias filePath, account:IMAP account
"ann_example"}
send msg
end tell
EOF
RunAppleScript($script) or die "Didn't work!";