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

Re: FW: [MacPerl] A modular Mac/UNIX mail CGI



Greg@tradesvc.com,Internet writes:
>
>Can you please describe to me the exact thing your script does, is this a
>  
>CGI program that sends emails via sendmail (or equivalent program)?  And 
> 
>what do you mean by 'pretty' up the email.  Are you formatting the emails
>  
>in html or rtf, or what?
>
The UNIXsend subroutine calls LWP::Useragent and the MACsend uses Mail::
Internet to send mail. The script itself passes a form's data through
whichever package (called a "flavour" - note the British/Canadian
spelling) the form specifies that it wants to be precessed by. Each
package is an instance of a pre-written "mail object" package and can
further process each field that is passed it's way. So each package (as
many as you want to write) can handle very different forms, some complex -
some simple. But it's all done in one place. Most email CGIs that I have
seen spew up all the fields in a random order, so you get the information,
but have to restructure it to make sense of it. This is fine for many
people, but folks who hate technology (like some people we all have to
deal with, I'm sure) just end up hating technology more. Essentially, this
is a way to impress people, as well as make our jobs easier.

Oh, and I'm not formatting the emails. You are! Do whatever you like with
them. I've written a few feeble tools to format stuff, but I'm more than
open to developing (or using pre-existing) more.

-josh

PS. http://telecommunity.ola.bc.ca/dev/is/  will take you to a feeble web
page that lets you choose either the Mac or UNIX compressed files.

PPS. Please note that if you're running this on a Mac, you may be trying
to send mail through OUR server. Check the values for $self->{_smtphosts}
in OLAmLibrary.pm


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch