View Full Version : Form Mailer
Skinnybobb
04-28-2006, 10:27 AM
Hiya,
Can anybody suggest some very simple code or product to help me out with mailing a web form to an email address. I've seen quite a few out there but do not have a great understanding of IIS.
I am using
Windows IIS6
Cheers
Mark
djr33
04-28-2006, 10:50 AM
Umm... google for a form mailer, use the url they give you, and it'll do it for you.
If you want to code one yourself, use php. Pretty easy, considering.
Then again, I don't even know what IIS6 is... so... you may be going in a good direction... I dunno.
Skinnybobb
04-28-2006, 11:15 AM
Sorry I didn't say that The mailer is for an Intranet so ideally do not want users connecting to the internet.
Also I would prefer using Perl or ASP as i'm currently learning these languages.
Mark
djr33
04-28-2006, 11:19 AM
ASP.... ew. It's php with less features, and proprietary.
Anyway, with php it's pretty easy, and asp is fairly similar... so look up a tutorial for that.
Perl... no clue. No idea if it can or if its worth it.
In php, basically:
[form is submitted, with <form method="post">]
Next page:
<?php
$message = $_POST['userinputfield'];
...
mail(arguments here, like address and $message);
?>
That's about it. Just gotta figure out how it should work.
Then do a redirect or display "it worked" or whatever.
Dunno about your languages, but they should work the same way, IF they have support for mailing and such, which they probably do.
Perl... no clue. No idea if it can or if its worth it.Simple form mailer. (http://www.elated.com/tutorials/programming/perl_cgi/form_mailer/) However, you'll have to pipe to some other program, since I don't believe Windows has an equivalent to sendmail.
mwinter
04-28-2006, 03:18 PM
If you want to code one yourself, use php. Pretty easy, considering.Using the mail function is pretty easy. Writing a good, secure form mail script is anything but without a great deal of expertise and not for beginners.
In the past, there have been widely used, but notoriously insecure scripts used on the Web that could be, and indeed were, used by anyone to send anything to anybody.
Even though the OP intends to use this on an intranet, a pre-existing script would be best. At the very least, decent code should take care of any issues with regard to conformance with RFC 2822.
Then again, I don't even know what IIS6 is...Internet Information Services. Microsoft's production Web server (amongst other things). IIS4 is infamous. IIS6 seems to have a better reputation.
Google will be your friend here, though you might want to start with the CGI Resource Index (http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Form_Processing/).
Mike
try this one, it allows attachment and file viewing before sending. http://www.flashattach.com
djr33
05-03-2006, 05:53 AM
As I said in another thread, using a plugin is very much not the way to do this. It requires a plugin, and that makes it complex.
It does seem like a nice easy option, but not a particularly good option.. there is a difference.
However, for flash, it does look pretty nice.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.