Problems? Is your data what you think it is? | |
PerlMonks |
Re: sendmail on windows- unique locationby antirice (Priest) |
on Nov 03, 2005 at 04:53 UTC ( [id://505220]=note: print w/replies, xml ) | Need Help?? |
Hmmm, I just tried using that sendmail program with Mail::Mailer and finally got it to work. Please note that getting it to work isn't easy and requires you to edit Mail::Mailer's source to get it to work properly on windows. Also, please be certain that your perl is 5.6.1 or later. First, here's my test script:
Please make certain you're putting '.exe' at the end of the executable or it'll complain that it can't find the executable. Now we have to work around a problem with Mail::Mailer. Unfortunately, it uses open($self,"|-") which, if you've read perldoc perlfork, isn't implemented on windows yet. However, there's a workaround. You'll need to add the following code to Mail::Mailer's source (preferably towards the end):
You will then need to go to line 269 and change open($self,"|-") to pipe_to_fork($self). Once you've done that, it should work. If it doesn't please reply below.
In Section
Seekers of Perl Wisdom
|
|