html with forms, that can then be sent via internal e-mail

If you touch your software enough does it become hardware?

Moderator: Forum Moderators

Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

html with forms, that can then be sent via internal e-mail

Post by Woo Elephant Yeah »

All, if anybody knows how to create a html page that has about 5 simple forms for text entry, and then somehow send that info to several different e-mails via hitting one button, I would be most grateful.

Basically this is a form for when people receive threatening or terrorist threats, so thr user would input data into several different fields, and then once happy, just hit a button on the page, and this then sends to a list of e-mails either within the html or possibly an address group in Exchange.

We use IIS and Microsoft Exchange, so all e-mails are Outlook based.

I think the forms side of it is pretty easy, but I haven't a clue how to make the forms then send data to an internal e-mail address.

Do I point the mails to the internal mailsweeper relay, or directly to the exchange server itself?

This has all arisen as it was originally coded in Perl many many years ago, and the server is now being decommisioned, and this si the only thing it hosts.

I'll gladly donate tonnes of 5perm for any help with this.
Also worth noting I have Dreamweaver 8 as my web design app', and this has lots of stuff built in, so possibly I could use that if I knew where to look.
Last edited by Woo Elephant Yeah on January 12th, 2007, 10:47, edited 1 time in total.
spoodie
Site Moderator
Site Moderator
Posts: 9246
Joined: February 6th, 2005, 16:49
Location: Essex, UK

Post by spoodie »

I done this when I first started using the Internet years ago but that was on a *nix based system with Apache and Sendmail. Use a proper webserver? :P
MIkkyo
5pork
5pork
Posts: 948
Joined: August 10th, 2006, 10:54

Post by MIkkyo »

I've got no idea about forms in html, sorry mate. But I could write you up a lovely wee program that prints "Hello World" to screen if you'd like.
Last edited by MIkkyo on January 12th, 2007, 10:19, edited 1 time in total.
Dr. kitteny berk
Morbo
Morbo
Posts: 19676
Joined: December 10th, 2004, 21:53
Contact:

Post by Dr. kitteny berk »

MIkkyo wrote:I've got no idea about forms in html, sorry mate. But I could right you up a lovely wee program that prints "Hello World" to screen if you'd like.
:lol:
FatherJack
Site Owner
Site Owner
Posts: 9597
Joined: May 16th, 2005, 15:31
Location: Coventry, UK
Contact:

Post by FatherJack »

Code: Select all

<form ACTION="mailto:youremail@yourdomain.com" METHOD="POST" ENCTYPE="text/plain">
<p><input NAME="Text entry field name" VALUE="Visible entry field title" size="20">Visible text that is inside field by default</p>
<p><input TYPE="SUBMIT" VALUE="Visible text on Submit button"></p>
</form>
If you want it to go to multiple recipients, create a mailing list and put that as the email address.
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

Thanks Fatherjack, you are a legend.

That should get me started, allthough I need several of those data collector forms, that sends a mail with just one click of the button but I'm sure I'll be able to work it out.
Wiggy
5pork
5pork
Posts: 925
Joined: June 12th, 2005, 17:00
Location: Chesterfield, UK

Post by Wiggy »

[quote="FatherJack"]Some funky codey shit[quote]
Smartarse.
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

Code: Select all

*should be a left arrow*form ACTION="mailto:i.love@horses.com" METHOD="post" ENCTYPE="text/plain">
<p>The details of the threat. or if a bomb, the location of the device:<br>
<textarea></textarea> 
</p>
<p>Any times set for action/detonation:<br>
<textarea></textarea>
</p>
<p>The appearance and size of any device, or other object being used (eg contaminant):<br>
<textarea></textarea>
</p>
<p>The type of explosive/contaminant if appropriate:<br>
<textarea></textarea>
</p>
<p>Why is the threat being made:<br>
<textarea></textarea> 
</p>
<p>The name and address of the caller, if obtainable or other identifying information:<br>
<textarea></textarea>
</p>
<p>The sex of the caller:<br>
<input>
</p>
<p>Estimated age of caller:<br>
<input>
</p>
<p>Record details of any accent, speech impediment?<br>
<textarea></textarea>
</p>
<p>Did the message sound like it was being read from a script?<br>
<input>
</p>
<p>Was the mood of the caller calm, agitated etc?<br>
<textarea></textarea>
</p>
<p>Was there any significant background noise?<br>
<textarea></textarea>
</p>
<p>Time of Call:<br>
<input>
</p>
<p>Please give your name:<br>
<input>
</p>
<strong>Try to read message back to caller before finishing.</strong></p>
<p><input>
</p>
</form>
Now all I need to do is work out how to stop that annoying warning message you get from I.E. saying you are about to send an e-mail
Stoat
Site Admin
Site Admin
Posts: 3291
Joined: October 8th, 2004, 15:48
Location: Sheffield, UK
Contact:

Post by Stoat »

<standards>

<br />
<input />

</standards>
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

Stoat wrote:<standards>

<br>
<input>

</standards>
You might as well be speaking to me in Japanese there mate, what does that do?
Stoat
Site Admin
Site Admin
Posts: 3291
Joined: October 8th, 2004, 15:48
Location: Sheffield, UK
Contact:

Post by Stoat »

Nothing.
But br and input- like img- don't have a terminating tag and so should have a slash at the end.
It's html pedantry, essentially.

The actual contents of the form worries my slightly.
Dr. kitteny berk
Morbo
Morbo
Posts: 19676
Joined: December 10th, 2004, 21:53
Contact:

Post by Dr. kitteny berk »

Stoat wrote:The actual contents of the form worries my slightly.
how does it feel to have a worried slightly?
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

Ah okay, thanks, but nobody will give a shit so I'll leave it as is.
Stoat wrote:The actual contents of the form worries my slightly.
Z0mG Someone set us up teh BOMB!
Stoat
Site Admin
Site Admin
Posts: 3291
Joined: October 8th, 2004, 15:48
Location: Sheffield, UK
Contact:

Post by Stoat »

A bit disturbing. But only a little.
ProfHawking
Zombie
Zombie
Posts: 2101
Joined: February 20th, 2005, 21:31

Post by ProfHawking »

is this thing hosted where?
cant you use php?
Fear
Zombie
Zombie
Posts: 2032
Joined: August 6th, 2006, 21:45

Post by Fear »

ProfHawking wrote:cant you use php?
Or ASP / ASP.Net / CGI(perl)

Basically you need a language other than HTML else IE will always give you that sending email warning. It also wont actually send the email until you open your email client and do a send and receive. You really want the server to send the email - not the client.


Stoat:

For HTML 4 you shouldn't use the closing "/>" - XHTML you should. Depends what doc type it is going into.
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

Only got IIS currently set up here at work, none of our live servers use PHP or CGI (Perl).

As for Asp, not sure about that, or what technology you need to drive it.

You are right though, it's a better idea to send from the server and not the client, and this is my main concern.

How easy is it to set up ASP, as that technology is used on something else that is due to be decommisioned and it might be handy to go down that route.
Dr. kitteny berk
Morbo
Morbo
Posts: 19676
Joined: December 10th, 2004, 21:53
Contact:

Post by Dr. kitteny berk »

asp is pretty easy to setup, especially on IIS (as both are microsoft's babies)

ISTR asp.net is a tad shiner, but only for 2k3. otherwise you just get asp.
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

Woo Elephant Yeah wrote: Z0mG Someone set up us teh BOMB!
/meme nazi
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

fabyak wrote:/meme nazi
Now that's just plain weird :lol:
Post Reply