Link to home
Start Free TrialLog in
Avatar of powermixx
powermixx

asked on

Macintosh form mail script?

I'm helping my brother who is hosting his own site on a Macintosh server. Simple question:

Is there a form mail script similar to Matt's free script formmail.pl for the Macintosh? Or what way can he bext handle form data scripting? Thanks!

Bobby
Avatar of Peewee
Peewee

powermixx,
have a look at MIME::Lite.

on your webserver do a man MIME::Lite
or go to http://www.cpan.org

This has a great email facility.  It allows you to specify what your email server is.

ie:

 ### Create a new multipart message:
           $msg = MIME::Lite->new(
                        From    =>'me@myhost.com',
                        To      =>'you@yourhost.com',
                        Cc      =>'some@other.com, some@more.com',
                        Subject =>'A message with 2 parts...',
                        Type    =>'multipart/mixed'
                        );
  ### Do something like this in your 'main':
           if ($I_DONT_HAVE_SENDMAIL) {
              MIME::Lite->send('smtp', "smtp.myisp.net", Timeout=>60);
           }
 
           ### Now this will do the right thing:
           $msg->send;         ### will now use Net::SMTP as shown above

regards
Peewee
Avatar of powermixx

ASKER

i will look at this. But it's general practice here to submit a comment, then let the submiter close the question. When an answer is proposed (like this question is now), no other users may comment on it.

Thanks again. I'll take a look and reply...

Bobby
ASKER CERTIFIED SOLUTION
Avatar of Peewee
Peewee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
powermixx,
did you get the answer you were looking for..

regards
peewee
peewee,
Again, I'm helping my brother with this issue. He tells me you have provided enough information to help him solve this issue, so I'll close this question. Thank you for your comments.


Bobby
powermixx,
glad to help...

regards
Peewee