[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [MacPerl-AnyPerl] [MacPerl] off topic sendmail
- To: Allan Greenier <agreenier@snet.net>
- Subject: Re: [MacPerl-AnyPerl] [MacPerl] off topic sendmail
- From: Ronald J Kimball <rjk@linguist.dartmouth.edu>
- Date: Tue, 16 May 2000 22:14:08 -0400
- Cc: MacPerl-AnyPerl list <macperl-anyperl@macperl.org>
- In-Reply-To: <3921D26D.62E7BBF6@snet.net>; from Allan Greenier on Tue, May 16, 2000 at 06:57:50PM -0400
- References: <3921D26D.62E7BBF6@snet.net>
On Tue, May 16, 2000 at 06:57:50PM -0400, Allan Greenier wrote:
> Greetings,
>
> Forgive this off topic post...what I really need are some cross
> platform guru's...also it's a fascinating little perl problem. So if you
> are only interested in mac perl issues, you've been advised.
Non-platform-specific posts should be sent to the macperl-anyperl list.
> I had a nagging problem with a simple cgi I was installing. Basic Form
> to email so I downloaded FormMail.pl from Matt's script archives which
> proceeded not to send any mail, althoug returning from FormMail with
> it's thankyou page (no errors).
What do you expect from Matt's Scripts? :)
> The server was a windows pc.
>
> I went into debugging mode with a simple 6 line sample from
> sendmail.exe's 'manual'...which also didn't work. Sendmail wasn't closing.
> close(MAIL);
>
> The fix was:
>
> print MAIL ".\n";
> close(MAIL);
>
> in both places!
>
>
> Now I understand what this does, but I always thought sendmail (windows
> or unix) handled this internally.
Perl should close the filehandle when the script exits... are you running
mod_perl or similar that caches Perl scripts? In that case, maybe the
implicit close won't happen when the script ends.
Ronald
==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org