Title:

Hi all....
Here are some basic instructions for setting up the imailsrv.pl
It is written by me, a person who knows nothing about scripting. I figured out by trial and error... so, don't expect the fancy lingo...

It is the notepad attachment at the bottom.

John:

Hopefully this will help you.

Dusty:

I don't know if the writing is too crude or what, but feel free to throw it on your site if you want. I just blasted through it, so John could finish his.......

Thanks

-Dustin

-----Original Message-----
From: John A. Young [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 28, 1999 12:56 PM
To: [EMAIL PROTECTED]
Subject: RE: [IMail Forum] IMAILSRV.PL-documentation


Oh, please don't keep me in suspense.  I have been trying to get the same thing to work here as well.  What was that little bit of info?

John A. Young
Springboro Internet


On Tue, 28 Sep 1999 15:09:35 -0400, Dustin Krysak wrote:

>I actually got it to work finally.... had to modify a little of the script,
>and the page template...
>I was missing one key bit of info.
>
>Thanks for the help everyone.
>
>-Dustin
>
>-----Original Message-----
>From: Vaughn Thurman [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 28, 1999 11:54 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [IMail Forum] IMAILSRV.PL-documentation
>
>
>I got it work and it sends to the listserv.  That alias is still creepin
>around somewhere in the IMAIL code...
>-V
>----- Original Message -----
>From: Dustin Krysak <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, September 28, 1999 12:14 PM
>Subject: RE: [IMail Forum] IMAILSRV.PL-documentation
>
>
>> I know that... I mail creates it by default.....but in the script itself,
>it
>> gives a listserv, and I was wondering if it needed to be changed to the
>> mailsrv alias to work.
>>
>> Thanks.
>>
>> -Dustin
>>
>> -----Original Message-----
>> From: Vaughn Thurman [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, September 28, 1999 7:09 AM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [IMail Forum] IMAILSRV.PL-documentation
>>
>>
>> That would/should be the alias for the list server program on your mail
>> server.
>> -V
>> ----- Original Message -----
>> From: Dustin Krysak <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Monday, September 27, 1999 6:40 PM
>> Subject: RE: [IMail Forum] IMAILSRV.PL-documentation
>>
>>
>> > You know in the source code of the page, where it is stated
>> > listserv@blahblah_hostname? Does that get changed to
>> > [EMAIL PROTECTED]?
>> >
>> > -DK
>> >
>> > -----Original Message-----
>> > From: Bill James [mailto:[EMAIL PROTECTED]]
>> > Sent: Monday, September 27, 1999 3:34 PM
>> > To: [EMAIL PROTECTED]
>> > Subject: Re: [IMail Forum] IMAILSRV.PL-documentation
>> >
>> >
>> > Dustin,
>> >
>> >    I was just looking at the readme that comes with it and it seems that
>> it
>> > tells you all. I followed the steps and......
>> >
>> > Bill
>> >
>> > You can get Imail Instructions for your users at
>> > http://www.ipnp.net/imailstuff/imailstuff.htm
>> > ----- Original Message -----
>> > From: Dustin Krysak <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Monday, September 27, 1999 6:11 PM
>> > Subject: [IMail Forum] IMAILSRV.PL-documentation
>> >
>> >
>> > >
>> >
>> > Please visit http://www.ipswitch.com/support/mailing-lists.html
>> > to be removed from this list.
>> > Please visit http://www.ipswitch.com/support/mailing-lists.html
>> > to be removed from this list.
>> >
>>
>> Please visit http://www.ipswitch.com/support/mailing-lists.html
>> to be removed from this list.
>> Please visit http://www.ipswitch.com/support/mailing-lists.html
>> to be removed from this list.
>>
>
>Please visit http://www.ipswitch.com/support/mailing-lists.html
>to be removed from this list.
>Please visit http://www.ipswitch.com/support/mailing-lists.html
>to be removed from this list.
>



Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

# Ipswitch Mailing List Readme file #

Attached are the three files you will need to set up your mailing list via web form.
The file, imailcgi.exe, is a command line emailer that is used by the perl
script and must be installed on your web server. The perl script also uses
the perl5 module, cgi.pm, for parsing and interpreting query strings. You
can download this module at www.perl.com (it comes with the latest
version of ActivePerl). 

Note: Remember to replace hidden field values and all other list references in the 
file,
      mailing-lists.html. See the file imailsrv.pl for more details . . .

To install imailcgi.exe
1. Copy imailcgi to your "\WINNT\SYSTEM32" directory, or to any other
directory in your path
2. Run "imailcgi -install yourhost.domain.top-level-domain (e.g imail.ipswitch.com) 
youruserid@domain (e.g. [EMAIL PROTECTED])"

**************************************************************************************************************************
Now here is what I had to do to get it running...
Please keep in mind that these instructions are for those who know nothing about perl 
and scripting like myself.
So there will be no correct lingo, and it will be in point form of sorts. This is just 
a quick run down with little modification to the templates which will get it working, 
and where you take it from there is up to you. Be careful about the word wrapping.... 
it has caused me great hair loss at one time or another. I have IIS on my system for 
my main site, and when I refer to my "web root", I mean of my IIS web server(I.E. 
x:\inetpub\wwwroot), and when I refer to the "Imail web root", I am talking about the 
web access directory (I.E. x:\imail\web) for IMail. IF it will work by using one, I am 
not sure. I have not tested it.

Once you have done the above (including the download and install of active perl)

-Create you mailing lists on the IMail server.

-copy the imailsrv.pl into you cgi-bin (or whatever cgi directory you are using within 
your root web -IIS).

-open the imailsrv.pl in notepad 
These next two areas allow you to customize what is generated by the script upon 
completion of submitting a subscription.
You will see right off the bat, the "$header" (without quotes) this area creates the 
HTML header for a  page used for notifying sucsess or failure of subscription. Then 
just below it, you will see "$footer" (again without quotes), and as you can guess 
this creates the footer of the same page. You can put your support e-mail address or 
logo's here. 
If you are going to list an e-mail address, the address needs to be formatted in the 
following way or you will get errors...

support\@yourdomain.com     (Don't ask me why... I just read that somewhere after I 
was getting the errors).

Close the save changes and close the file.

-Copy the "mailing-lists.html" into your web somewhere... doesn't matter where, just 
your preference for organization. For example IPSwitch puts theirs in their support 
folder, etc. I put mine in an imail folder within my web root (IIS). 

-Open the "mailing-lists.html" with notepad to edit it.
Find the following in the source code...

<form action="/cgi-bin/imailsrv.pl" method="POST">

Ensure that the path is that of where you copied the actual imailsrv.pl into your root 
web (IIS). I think by default the path is "/cgi/imailsrv.pl"
Next you will need to find...

 <input type="hidden" name="IMail_Server" 
value="listserv@your_IMail_server_hostname"><input type="hidden" name="lists" 
value="List_Name_1, List_Name_2, List_Name_3">

There is an alias created by default (in version 5.X) of imailsrv. (This is where my 
problem came up... my eyes were too blury and I had put [EMAIL PROTECTED], 
when it should have beem [EMAIL PROTECTED]). So make sure that you change the 
e-mail address to be that of the list server mail address. So make sure you change it 
to "imailsrv" if you are using v5.X. And where it says

value="List_Name_1, List_Name_2, List_Name_3">

substitute list1 for the your first list and so on. This will be the actual list name, 
not the descriptions you had entered.

The next step is to find (Lets call this section "A")

<td bgcolor="#E2E2E2"><font size="2" face="Arial"><select
            name="List_Name_1" size="1">

Here you will need to input the name of your list, again, not the description you had 
entered when you created the list.

Then find this in the same section... (Lets call this section "B")


            <td bgcolor="#E2E2E2"><font size="2" face="Arial">Replace this text with 
List_Name_1</font></td>
        </tr>

And do as it says....replace the text, with the description or list name... this is 
what will appear on the WEB page, that the user will see.

You will then need to scroll down a little more and find another part like section 
"A", except this is for list2. Then there will also be a section "B" for list2. You 
would then do the replacements for the list names and descriptions. Then you will also 
need to scroll down some more and repeat for list3.

Save the changes and close the HTML file.

You should now have this perl script functioning as it needs to be, so long as you had 
set up the lists correctly on the server. The main piece of advice I can give, is make 
sure your list names and e-mail address (in the script) are correct.
You can go back and add all the finishing touches like logo's, etc. 

If need be, send me an e-mail to compare scripts. 
[EMAIL PROTECTED]
Sorry if there are any spelling mistakes.




Reply via email to