Re: How to send email with perl, or at least control Outlook Express



Jack wrote, on 03/11/2008 03:59 PM:
On Mar 11, 11:08 am, Michael Goerz <newsgroup898s...@xxxxxxxxxxxxxxx>
wrote:
Jack wrote, on 03/11/2008 11:39 AM:

Hi for some reason I can send email and the target receives it with my
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)
Does this help you?http://www.physik.fu-berlin.de/~goerz/programs/mailpl/mailpl.html

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,
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
> 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.
is there anyway you can post a very
stripped down version that just does the very basic with basic user
authentication so I can run this ?
Not really. Try commenting out dependencies if you must. You'll still need some modules, which are all easily available.

perl testemail4.pl --to=guy@xxxxxxxxx --from=steve@xxxxxxx --s
ubject=test --host=smtp.sss.com --port=25 --user=steve --pass=8989dud3
I hope that's not your real password!

Thank you,
Jack
Good luck,
Michael
.



Relevant Pages

  • Re: How to send email with perl, or at least control Outlook Express
    ... Michael Goerz wrote, on 03/11/2008 06:23 PM: ... You can try to comment out some of the dependencies. ... I don't think I ever tested the script on Windows. ...
    (comp.lang.perl.misc)
  • Re: How to send email with perl, or at least control Outlook Express
    ... You can try to comment out some of the dependencies. ... Installing missing modules in Perl should be quite easy ... You're on Windows, right?... ... I don't think I ever tested the script on ...
    (comp.lang.perl.misc)
  • Re: Best approach for using a TCL script from multiple directories
    ... longer uses $PATH to look for the script. ... Somehow, on Windows, you have to tell the system what ... my global script is dependent on ... remove the dependencies and just have everything lumped together in a ...
    (comp.lang.tcl)
  • Re: Event Errors
    ... DependOnService lists the service dependencies. ... [[Windows couldn't log the RSoP session status. ... System File Checker replaces screwed up system files. ... Event Type: Error ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: kms in defconfig
    ... Linus Torvalds wrote: ... i could imagine a kconfig knob to specify an optional ... suplies and maintains his script ... the dependencies before to enable/disable drivers), ...
    (Linux-Kernel)