Re: How to send email with perl, or at least control Outlook Express
- From: Michael Goerz <newsgroup898sfie@xxxxxxxxxxxxxxx>
- Date: Tue, 11 Mar 2008 23:52:26 -0400
Michael Goerz wrote, on 03/11/2008 06:23 PM:
Jack wrote, on 03/11/2008 03:59 PM:I just googled it. On Windows, you have to press CTRL+Z instead of CTRL+D:On Mar 11, 11:08 am, Michael Goerz <newsgroup898s...@xxxxxxxxxxxxxxx>You can try to comment out some of the dependencies. You can definitely get rid of 'use Mail::GPG;' and 'use Archive::Zip qw( :ERROR_CODES :CONSTANTS );'. The program will fail if you actually use encryption or zipped attachments, of course, but you should be find for you basic functionality. Most of the other dependencies are probably essential, all the network communication stuff. You can play around with commenting out any of them, see what works and and doesn't.... But, there will always be some dependencies left. What's the problem with using 'perl -MCPAN'? Installing missing modules in Perl should be quite easy
wrote:
Jack wrote, on 03/11/2008 11:39 AM:
Hi for some reason I can send email and the target receives it with myDoes this help you?http://www.physik.fu-berlin.de/~goerz/programs/mailpl/mailpl.html
James mailserver via Outlook Express, but not via BLAT. I am using
user/pass authentication.. can anyone point me to a script that works
and is simple for
1- send an email directly (problem with below is email never shows up
at destination)
Michael Goerz
Hi excellent for those looking for all the bells and whistles
(encryption, etc etc) - good work .however way too much code,
complexity, dependencies requiring install, etc for me,
> and when I got
> it to run, ctrl-D didnt work..
You're on Windows, right?... I don't think I ever tested the script on Windows. It should work though. crtl+D is supposed to end standard input. It's not a feature of the script, but of the shell. There's got to be something equivalent on Windows. But, entering the email text on the console is only a fallback anyway. You should call an editor for that (--editor=notepad). It's best to set this up in the config file. (at "$ENV{HOME}/.mailpl/mailpl.rc" by default, but you can change that at the beginning of the script).
Next time I'll be on a Windows machine, I'll try to find out what's up with this CTRL+D... it might be a while, though.
http://www.mhuffman.com/notes/dos/bash_cmd.htm
.
- Follow-Ups:
- References:
- How to send email with perl, or at least control Outlook Express
- From: Jack
- Re: How to send email with perl, or at least control Outlook Express
- From: Michael Goerz
- Re: How to send email with perl, or at least control Outlook Express
- From: Jack
- Re: How to send email with perl, or at least control Outlook Express
- From: Michael Goerz
- How to send email with perl, or at least control Outlook Express
- Prev by Date: Re: Fastest way to send file to browser
- Next by Date: Re: timeout problem with Net::Telnet
- Previous by thread: Re: How to send email with perl, or at least control Outlook Express
- Next by thread: Re: How to send email with perl, or at least control Outlook Express
- Index(es):
Relevant Pages
|