Solved

Macintosh form mail script?

Posted on 2002-03-15
6
156 Views
Last Modified: 2013-12-25
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
Comment
Question by:powermixx
  • 4
  • 2
6 Comments
 
LVL 5

Expert Comment

by:Peewee
ID: 6868019
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
 

Author Comment

by:powermixx
ID: 6869308
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
 
LVL 5

Accepted Solution

by:
Peewee earned 50 total points
ID: 6876489
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 5

Expert Comment

by:Peewee
ID: 6888235
powermixx,
did you get the answer you were looking for..

regards
peewee
0
 

Author Comment

by:powermixx
ID: 6888603
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
 
LVL 5

Expert Comment

by:Peewee
ID: 6888619
powermixx,
glad to help...

regards
Peewee

0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question