Solved

Macintosh form mail script?

Posted on 2002-03-15
6
153 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 5

Expert Comment

by:Peewee
Comment Utility
powermixx,
did you get the answer you were looking for..

regards
peewee
0
 

Author Comment

by:powermixx
Comment Utility
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
Comment Utility
powermixx,
glad to help...

regards
Peewee

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now