Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

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
0
powermixx
Asked:
powermixx
  • 4
  • 2
1 Solution
 
PeeweeCommented:
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
0
 
powermixxAuthor Commented:
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
0
 
PeeweeCommented:
powermixx,

also if you want to look at prewritten stuff, have a quick look at:
 http://cgi.resourceindex.com/Programs_and_Scripts/AppleScript/Form_Processing/

but i'd probably stick with MIME::Lite.

regards
peewee
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
PeeweeCommented:
powermixx,
did you get the answer you were looking for..

regards
peewee
0
 
powermixxAuthor Commented:
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
0
 
PeeweeCommented:
powermixx,
glad to help...

regards
Peewee

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now