🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #225

Re: Automatic mail submission

#225
From: Evert Jan van Ramselaar
Date: Wed, 02 Apr 1997 00:00
32 lines
2094 bytes
On Tue, 01 Apr 1997 15:50:15 +0000, Nigel Horne
<NIGEL.HORNE.0353041@nt.com> wrote:

>When hitting the 'submit' button on a form I'd prefer the form's
>contents to be e-mailed to an address, with a preset subject. I don't
>want to just have a URL of mailto: because that wouldn't implement a
>form, and I can't use Javascript's .submit() because Demon won't let me
>have my own CGI scripts.

Try starting your form with this:

<form action="http://www.tamu.edu:80/cgi/mailto.pl" method="POST">
<input type="hidden" name="errorsto" value="name@host.demon.nl">
<input type="hidden" name="mailitto" value="name@host.demon.nl">
<input type="HIDDEN" name="subject" VALUE="Any subject you want">
Your real name:        <input name="namefrom" size=45>
Your e-mail address:   <input name="mailfrom" size=45>

This works fine for me. Pse let me know if it works for you too...


--
   +----------------------------+----------------------------+
   |  Met vriendelijke groet    |  Evert Jan van Ramselaar   |
   |  With kind regards         |  EJ1BBS Internet Services  |
   |                            |  ejvr@ej1bbs.demon.nl      |
   +----------------------------+----------------------------+
   |    Visit our website:   <http://www.ej1bbs.demon.nl>    |
   +---------------------------------------------------------+
          NetSight: zoeken op naam, plaats of categorie
              <http://www.ej1bbs.demon.nl/netsight>
Technical Details
Message-ID: <3342aa1c.51906764@127.0.0.1>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <33412EB7.3F54BC7E@nt.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f76f2,42c6ee1408f578c3
X-Google-Attributes: gidf76f2,public
X-Google-Thread: fb3cb,42c6ee1408f578c3
X-Google-Attributes: gidfb3cb,public
From: ejvr@ej1bbs.demon.nl (Evert Jan van Ramselaar)
Subject: Re: Automatic mail submission
Date: 1997/04/02
Message-ID: <3342aa1c.51906764@127.0.0.1>
X-Deja-AN: 230193074
X-NNTP-Posting-Host: ej1bbs.demon.nl
References: <33412EB7.3F54BC7E@nt.com>
To: comp.lang.javascript,demon.homepages.authoring
Organization: EJ1BBS Internet Services
Reply-To: ejvr@ej1bbs.demon.nl
Newsgroups: comp.lang.javascript,demon.homepages.authoring