Results 1 to 8 of 8

Thread: Form Mailer

  1. #1
    Join Date
    Dec 2005
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Form Mailer

    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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.

  3. #3
    Join Date
    Dec 2005
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Perl... no clue. No idea if it can or if its worth it.
    Simple form mailer. However, you'll have to pipe to some other program, since I don't believe Windows has an equivalent to sendmail.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33
    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.

    Mike

  7. #7
    Join Date
    Jul 2005
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    try this one, it allows attachment and file viewing before sending. http://www.flashattach.com

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •