[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] off topic sendmail



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.

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).

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.
	What's most puzzling is I had to alter the simple perl sample from the
sendmail.exe manual page, as well as Matt Wright's classic FormMail.pl.

Also puzzling is the fact that I got sendmail and PWS wrorking together
on my pc, and both the sample and Formail worked fine(without the ".\n").

Live and learn and learn...

allan

Allan Greenier
AutoScript Applications

agreenier@snet.net

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org